Class: Everlog::Dom::Module::Weather

Inherits:
Everlog::Dom::Module show all
Defined in:
lib/everlog/dom/module/weather.rb

Class Method Summary collapse

Class Method Details

.fetch_since(date) ⇒ Object



3
4
5
6
7
# File 'lib/everlog/dom/module/weather.rb', line 3

def self.fetch_since(date)
  config = Dom::Entity::Config.wunderground
  api_response = Inf::Api::Wunderground.new(config).yesterday('Tokyo')
  Dom::Value::Weather.new(api_response)
end