class Barometer::Noaa::CurrentResponse
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/barometer/noaa/current_response.rb, line 9 def initialize(response) @response = response end
Public Instance Methods
parse(payload)
click to toggle source
# File lib/barometer/noaa/current_response.rb, line 13 def parse(payload) response.timezone = Noaa::Response::TimeZone.new(payload).parse response.location = Noaa::Response::CurrentLocation.new(payload, response).parse response.station = Noaa::Response::CurrentStation.new(payload, response).parse response.current = Noaa::Response::CurrentWeather.new(payload).parse response end