Class: Challenge::Solution
Instance Method Summary collapse
-
#initialize(theatres_file, capacities_file, partners_file) ⇒ Solution
constructor
A new instance of Solution.
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 |