collinsmezie / Ruby_capstone_catalog

0 stars 0 forks source link

[0.5pt]Create a Book class - Team member#1 #4

Open collinsmezie opened 2 years ago

collinsmezie commented 2 years ago

Create a Book class in a separate .rb file. All Book class properties visible in the diagram should be defined and set up in the constructor method. Implement method: can_be_archived?() in the Book class should override the method from the parent class should return true if parent's method returns true OR if cover_state equals to "bad" otherwise, it should return false

Add unit tests for all implemented methods.

The following options should be available: List all books Add a book

All data should be preserved by saving collections in .json files.