Class: Barometer::WeatherService::WundergroundV1::Response::FullTimeZone

Inherits:
Response::TimeZone
  • Object
show all
Defined in:
lib/barometer/weather_services/wunderground_v1/response/full_timezone.rb

Instance Method Summary collapse

Methods inherited from Response::TimeZone

#initialize

Constructor Details

This class inherits a constructor from Barometer::WeatherService::Response::TimeZone

Instance Method Details

#parseObject



6
7
8
9
10
11
# File 'lib/barometer/weather_services/wunderground_v1/response/full_timezone.rb', line 6

def parse
  payload.fetch_each('simpleforecast', 'forecastday') do |forecast_payload|
    timezone = timezone(forecast_payload)
    return Data::Zone.new(timezone) if timezone
  end
end