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.
- 📖 About the Project
- 💻 Getting Started
- 👥 Author
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
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.
Language
- [Implement Enumerable]
- [Add #Person-class]
- [Add #Student-class]
- [Add #Teacher-class]
- ... Coming soon
To get a local copy up and running, follow these steps.
In order to run this project you need:
- a browser
- Install Ruby on your commputer
Clone this repository to your desired folder:
cd your-desired-folder
git clone https://github.com/Leeoasis/School-library.git
Install this project with:
- besides the previuous installations, no other installations are required
To run tests, run the following command:
- no tests are included in this project
You can deploy this project using:
- no deployment is required for this project
👤 Leslie Gudo
- GitHub: @githubhandle
- LinkedIn: LinkedIn
- Twitter: @twitterhandle
- queries to query the database
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
If you like this project, please give it a ⭐️!
I would like to thank, the Microverse program for giving us this opportunity to learn and build this project.
This project is MIT licensed.