Class: Barometer::WeatherService::Response::TimeZone

Inherits:
Object
  • Object
show all
Defined in:
lib/barometer/weather_services/response/time_zone.rb

Instance Method Summary collapse

Constructor Details

#initialize(payload) ⇒ TimeZone



5
6
7
# File 'lib/barometer/weather_services/response/time_zone.rb', line 5

def initialize(payload)
  @payload = payload
end

Instance Method Details

#parseObject



9
10
11
# File 'lib/barometer/weather_services/response/time_zone.rb', line 9

def parse
  Data::Zone.new(time_zone)
end