Class: SortingServiceBooks::LoadConfig
- Inherits:
-
Object
- Object
- SortingServiceBooks::LoadConfig
- Defined in:
- lib/sorting_service_books/load_config.rb
Instance Attribute Summary collapse
-
#books ⇒ Object
Returns the value of attribute books.
-
#file_config ⇒ Object
Returns the value of attribute file_config.
-
#orders ⇒ Object
Returns the value of attribute orders.
Instance Method Summary collapse
-
#initialize(file_config) ⇒ LoadConfig
constructor
A new instance of LoadConfig.
Constructor Details
#initialize(file_config) ⇒ LoadConfig
Returns a new instance of LoadConfig.
6 7 8 9 10 |
# File 'lib/sorting_service_books/load_config.rb', line 6 def initialize(file_config) @file_config = file_config @orders = get_conditions || [] @books = get_books || [] end |
Instance Attribute Details
#books ⇒ Object
Returns the value of attribute books.
4 5 6 |
# File 'lib/sorting_service_books/load_config.rb', line 4 def books @books end |
#file_config ⇒ Object
Returns the value of attribute file_config.
4 5 6 |
# File 'lib/sorting_service_books/load_config.rb', line 4 def file_config @file_config end |
#orders ⇒ Object
Returns the value of attribute orders.
4 5 6 |
# File 'lib/sorting_service_books/load_config.rb', line 4 def orders @orders end |