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. And all of this will be built in a beautiful and well-organized way!

License

Notifications You must be signed in to change notification settings

Leeoasis/School-library

Repository files navigation

school library

In the overall project we will learn how to use the ruby object oriented programming language by creating a library where you can record what books are in the library and who borrows them.

📗 Table of Contents

📖 Enumerable

In this project I have created the following classes:

  • #Person
  • #Student
  • #Teacher

What each class does:

  • #Person - represents an individual with an ID, name, and age. The class allows for setting and getting the name and age attributes of the person. It also has a private method of_age? which returns true if the person is 18 years or older, and a public method can_use_services? which returns true if the person is of age or has permission from their parent.
  • #Student - is a subclass of the Person class and has an additional instance variable @classroom. It also has a method play_hooky which returns a string of "¯(ツ)/¯". This class represents a student and has the ability to skip class.
  • #Teacher - represents a person who has a specialization in a particular subject and is always able to use services regardless of their age or parental permission.

🛠 Built With

Tech Stack

Language

Key Features

  • [Implement Enumerable]
  • [Add #Person-class]
  • [Add #Student-class]
  • [Add #Teacher-class]

(back to top)

🚀 Live Demo

  • ... Coming soon

(back to top)

💻 Getting Started

To get a local copy up and running, follow these steps.

Prerequisites

In order to run this project you need:

  • a browser
  • Install Ruby on your commputer

Setup

Clone this repository to your desired folder:

  cd your-desired-folder
  git clone https://github.com/Leeoasis/School-library.git

Install

Install this project with:

  • besides the previuous installations, no other installations are required

Run tests

To run tests, run the following command:

  • no tests are included in this project

Deployment

You can deploy this project using:

  • no deployment is required for this project

(back to top)

👥 Author

👤 Leslie Gudo

(back to top)

🔭 Future Features

  • queries to query the database

(back to top)

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

(back to top)

⭐️ Show your support

If you like this project, please give it a ⭐️!

(back to top)

🙏 Acknowledgments

I would like to thank, the Microverse program for giving us this opportunity to learn and build this project.

(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. And all of this will be built in a beautiful and well-organized way!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages