Class: Challenge::Solution

Inherits:
Object
  • Object
show all
Includes:
Helper
Defined in:
lib/challenge.rb

Instance Method Summary collapse

Methods included from Helper

#export_data, #import_capacities_data, #import_partners_data, #import_theatres_data, #read_data

Constructor Details

#initialize(theatres_file, capacities_file, partners_file) ⇒ Solution

Returns a new instance of Solution.



7
8
9
10
11
12
13
# File 'lib/challenge.rb', line 7

def initialize(theatres_file, capacities_file, partners_file)
	@theatres = import_theatres_data(theatres_file)
	@capacities = import_capacities_data(capacities_file)
	@partners = import_partners_data(partners_file)
	economical_deliveries
	distributed_deliveries
end