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

Class Method Summary collapse

Class Attribute Details

.configurationObject

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

Yields:



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