- 📖 About the Project
- 🛠 Built With
- 💻 Getting Started
- 👥 Authors
- 🔭 Future Features
- 🤝 Contributing
- ⭐️ Show your support
- 🙏 Acknowledgements
- 📝 License
School Library App is a Ruby project focused on implementing classes and objects to manage a school library. This initial step involves creating classes to represent students and teachers.
- Ruby
Server
- Ruby
- Create class
Person
with the following:- Instance vars:
@id
,@name
, and@age
. - Constructor with
name
,age
, andparent_permission
as parameter.name
andparent_permission
are optional and have default values of"Unknown"
andtrue
. - Getters for
@id
,@name
, and@age
. - Setters for
@name
and@age
. - Private method
of_age?
that returnstrue
if@age
is greater or equal to 18 andfalse
otherwise. - Public method
can_use_services?
that returnstrue
if person is of age or if they have permission from parents.
- Instance vars:
- Create class
Student
with the following:- Inherits from
Person
. - Constructor extends parent's constructor by adding
@classroom
and a parameter for it. - Method
play_hooky
that returns"¯\(ツ)/¯"
.
- Inherits from
- Create class
Teacher
with the following:- Inherits from
Person
. - Constructor extends parent's constructor by adding
@specialization
and a parameter for it. - Override
can_use_services?
so it always returnstrue
.
- Inherits from
- Each class are be saved in a separate file.
To get started with the project, follow the steps below.
To run this project, ensure you have the following installed:
Clone the repository to your local machine:
git clone https://github.com/fmanimashaun/school_library.git
To run the program, you can use a Ruby interpreter. For example, to interact with the code, use the following:
irb
Then, load the required files and start using the classes.
👤 Fisayo Michael Animashaun
- GitHub: @fmanimashaun
- Twitter: @fmanimashaun
- LinkedIn: Fisayo Michael Animashaun
- [Add your future feature ideas here.]
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
https://github.com/fmanimashaun/school_library/issues
If you like this project leave a start for it.
I'd like to thank Microverse for helping us in the journey to become a Fullstack developer.
This project is MIT licensed.