Class: RateCenter::DataPrep

Inherits:
Object
  • Object
show all
Defined in:
lib/rate_center/data_prep.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ DataPrep

Returns a new instance of DataPrep.



8
9
10
# File 'lib/rate_center/data_prep.rb', line 8

def initialize(**options)
  @data_directory = options.fetch(:data_directory)
end

Instance Attribute Details

#data_directoryObject (readonly)

Returns the value of attribute data_directory.



6
7
8
# File 'lib/rate_center/data_prep.rb', line 6

def data_directory
  @data_directory
end

#loggerObject (readonly)

Returns the value of attribute logger.



6
7
8
# File 'lib/rate_center/data_prep.rb', line 6

def logger
  @logger
end

Instance Method Details

#callObject



12
13
14
15
16
# File 'lib/rate_center/data_prep.rb', line 12

def call
  update_rate_centers_with_closest_city
  update_cities_with_nearby_rate_centers
  export_lata_data
end