class Barometer::WeatherBug::CurrentResponse

Attributes

response[R]

Public Class Methods

new() click to toggle source
# File lib/barometer/weather_bug/current_response.rb, line 6
def initialize
  @response = Barometer::Response.new
end

Public Instance Methods

parse(payload) click to toggle source
# File lib/barometer/weather_bug/current_response.rb, line 10
def parse(payload)
  response.add_query(payload.query)
  response.current = WeatherBug::Response::CurrentWeather.new(payload).parse
  response
end