class Barometer::Noaa::ForecastResponse
Attributes
response[R]
Public Class Methods
new()
click to toggle source
# File lib/barometer/noaa/forecast_response.rb, line 7 def initialize @response = Barometer::Response.new end
Public Instance Methods
parse(payload)
click to toggle source
# File lib/barometer/noaa/forecast_response.rb, line 11 def parse(payload) response.add_query(payload.query) response.location = Noaa::Response::Location.new(payload).parse response.station = response.location response.forecast = Noaa::Response::ForecastedWeather.new(payload).parse response end