Class: SortingServiceBooks::LoadConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/sorting_service_books/load_config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#booksObject

Returns the value of attribute books.



4
5
6
# File 'lib/sorting_service_books/load_config.rb', line 4

def books
  @books
end

#file_configObject

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

#ordersObject

Returns the value of attribute orders.



4
5
6
# File 'lib/sorting_service_books/load_config.rb', line 4

def orders
  @orders
end