Class: RateCenter::DataPrep
- Inherits:
-
Object
- Object
- RateCenter::DataPrep
- Defined in:
- lib/rate_center/data_prep.rb
Instance Attribute Summary collapse
-
#data_directory ⇒ Object
readonly
Returns the value of attribute data_directory.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(**options) ⇒ DataPrep
constructor
A new instance of DataPrep.
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(**) @data_directory = .fetch(:data_directory) end |
Instance Attribute Details
#data_directory ⇒ Object (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 |
#logger ⇒ Object (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
#call ⇒ Object
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 |