Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚩Milestone 4: Add basic UI | add-basic-ui - >>branch<< -
Hi there! @NitBravoA92 here. 👋
This is the PR for the OOP school library: Add basic UI activity. The main objective of this Milestone is: to create the main user interface for the command line and the different functionalities that will be offered to the user when he selects each menu option: List books, List people (Students and Teachers), List rents, Create a book, Create a person (Student or Teacher), Create a rent and List the rents by Person ID.
Here is a summary of what has been done:
Add a new intance variable:
type
in thePerson
class.Create the
App
class with four instance variables: @title, @books_list, @people_list, @rentals_list, and the methods:list_books
: List all the books created by the userlist_people
: List all the people (Students and Teachers) created by the userlist_rentals
: List all the book rentals created by the usercreate_person
: Allows users add a new person (student or teacher)create_book
: Allows users add a new bookcreate_rental
: Allows users add a new book rentalmenu_options
: This method has the code to display the list of application menu optionsmenu
: This method has the logic to display the whole menu and process the options selected by the userrun
: This method starts the applicationlist_books_for_rental
: This private method displays the list of books in the Create a rental optionlist_people_for_rental
: This private method displays the list of people in the Create a rental optioncreate_student
: This private method has the logic to add a new student to the @people_list arraycreate_teacher
: This private method has the logic to add a new teacher to the @people_list arrayCreate the
main
method in the main.rb file with the code to run the applicationRemove the run.rb file
Update the README.md file
⭐To the code reviewer 👨💻
💝 I really thank 🙇♂️ you, dear code reviewer 👨🎨 for dedicating your precious 🥇 time ⌚ to check the PR 🧾 .
I kindly ask 🙏 dear code reviewer 🤵 that if there is any kind of issue 🦯 in this project, please do list 📃 them in a descriptive 💡 manner and give your best suggestions 🎁 if needed.
If you think some big issues are essential to be changed ♻️ please kindly contact 📞 me through Zoom or Slack, I am available on Microverse UTC-6 time zone.