Class: Watwa::Forecast

Inherits:
Object
  • Object
show all
Defined in:
lib/watwa/main.rb

Overview

Pulls weather data from Yahoo! Weather API via the weather-api gem

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeForecast

Returns a new instance of Forecast.



58
59
60
61
# File 'lib/watwa/main.rb', line 58

def initialize
  # Pull weather forcast from Yahoo Weather
  @response = Weather.lookup_by_location('Melbourne, AU', C)
end

Instance Attribute Details

#responseObject

Pulls weather forcast from Yahoo Weather



56
57
58
# File 'lib/watwa/main.rb', line 56

def response
  @response
end