Skip to content

Imagine that you are the librarian of OOP University, and you need a tool to record what books are in the library and who borrows them. The app that you will create will allow you to: Add new students or teachers. Add new books. Save records of who borrowed a given book and when.

Notifications You must be signed in to change notification settings

Benawi/OOP-School-Library

Repository files navigation

🛰OOP school library🚀

📗 Table of Contents

📖 OOP school library

This repository includes files with Ruby that can be used to recreate an OOP school library app.

🛠 Built With

Tech Stack

🔑 Key Features

OOP school library

  • Create Person class with:
    • Instance vars: @id, @name, @age
    • Constructor with optional name, parent_permission
    • Getters/setters for @name, @age
    • Private of_age? method
    • Public can_use_services? method
  • Create Student subclass with:
    • Constructor adding @classroom
    • play_hooky method
  • Create Teacher subclass with:
    • Constructor adding @specialization
    • Override can_use_services? to always return true
  • Prepare CapitalizeDecorator and TrimmerDecorator
  • set up associations
  • preserve data
  • Add unit test

(back to top)

💻 Getting Started

Prerequisites

To run this project you need:

Setup

Clone this repository to your desired folder:

  git clone [email protected]:rabayarabu/OOP-school-library.git
  cd OOP-school-library

Install

Install project dependencies with:

  bundle install

Usage

To run the project, instantiate the class files in main. rb and execute the following command:

  ruby main.rb

(back to top)

👥 Authors

👤 Habtamu Alemayehu

👤 Abel Morara

👤 Sahalu Aminu

(back to top)

🔭 Future Features

  • Optimize the performance of the system.🚀

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

(back to top)

⭐️ Show your support

Give me ⭐️ If you like this project!

(back to top)

🙏 Acknowledgments

  • I thank the Microverse program for giving us this great chance.

(back to top)

📝 License

This project is MIT licensed.

(back to top)

About

Imagine that you are the librarian of OOP University, and you need a tool to record what books are in the library and who borrows them. The app that you will create will allow you to: Add new students or teachers. Add new books. Save records of who borrowed a given book and when.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages