-
Author:
- name - full author's name
- biography
-
Book:
- title
- author
-
Reader:
- name - full reader's name
- city
- street
- house - building number
-
Order:
- book - Book instance
- reader - Reader instance
- date - by default - Time.now
-
Library:
Stores the collections of instances of classes, described above. By default they are empty arrays.
- authors
- books
- orders
- readers
And some methods which allow you get some statistics about the whole Library and do some manipulations with it:
- Write and Read to/from .yaml file.
- Generate seeds for Library.
- Get most popular book and reader.
- Get the amount of people who ordered one of the three most popular books.
There is only two dependencies:
- gem Faker to generate seeds
- ruby 2.4.0