Module: Forecaster
- Defined in:
- lib/forecaster.rb,
lib/forecaster/forecast.rb,
lib/forecaster/configuration.rb
Defined Under Namespace
Classes: Configuration, Forecast
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
- .configure {|configuration| ... } ⇒ Object
- .fetch(year, month, day, hour_of_run, hour_of_forecast) ⇒ Object
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
6 7 8 |
# File 'lib/forecaster.rb', line 6 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
9 10 11 12 |
# File 'lib/forecaster.rb', line 9 def self.configure self.configuration ||= Forecaster::Configuration.new yield(configuration) end |
.fetch(year, month, day, hour_of_run, hour_of_forecast) ⇒ Object
14 15 16 |
# File 'lib/forecaster.rb', line 14 def self.fetch(year, month, day, hour_of_run, hour_of_forecast) Forecaster::Forecast.new(year, month, day, hour_of_run, hour_of_forecast).fetch end |