Skip to content

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.

License

Notifications You must be signed in to change notification settings

fmanimashaun/school_library

Repository files navigation

OOP school library

📗 Table of Contents

📖 School Library command-Line App

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.

🛠 Built With

  • Ruby

Tech Stack

Server
  • Ruby

Key Feature

  • Create class Person with the following:
    • Instance vars: @id, @name, and @age.
    • Constructor with name, age, and parent_permission as parameter. name and parent_permission are optional and have default values of "Unknown" and true.
    • Getters for @id, @name, and @age.
    • Setters for @name and @age.
    • Private method of_age? that returns true if @age is greater or equal to 18 and false otherwise.
    • Public method can_use_services? that returns true if person is of age or if they have permission from parents.
  • 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 "¯\(ツ)/¯".
  • 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 returns true.
  • Each class are be saved in a separate file.

👆

💻 Getting Started

To get started with the project, follow the steps below.

Prerequisites

To run this project, ensure you have the following installed:

Setup

Clone the repository to your local machine:

git clone https://github.com/fmanimashaun/school_library.git

Usage

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.

👆

👥 Authors

👤 Fisayo Michael Animashaun

👆

🔭 Future Features

  • [Add your future feature ideas here.]

👆

🤝 Contributing

Contributions, issues, and feature requests are welcome!

Feel free to check the issues page.

https://github.com/fmanimashaun/school_library/issues

👆

⭐️ Show your support

If you like this project leave a start for it.

👆

🙏 Acknowledgments

I'd like to thank Microverse for helping us in the journey to become a Fullstack developer.

👆

📝 License

This project is MIT licensed.

👆

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages