class Barometer::WeatherBug::ForecastResponse
Attributes
response[R]
Public Class Methods
new(response)
click to toggle source
# File lib/barometer/weather_bug/forecast_response.rb, line 6 def initialize(response) @response = response end
Public Instance Methods
parse(payload)
click to toggle source
# File lib/barometer/weather_bug/forecast_response.rb, line 10 def parse(payload) response.forecast = WeatherBug::Response::ForecastedWeather.new(payload).parse response end