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.
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.