Sha256: 64beb79c748303869597f969b1a5d72f74d29a14a79cfe984105d2aee0f5e8c7
Contents?: true
Size: 636 Bytes
Versions: 6
Compression:
Stored size: 636 Bytes
Contents
require_relative 'response/location' require_relative 'response/forecasted_weather' module Barometer module WeatherService class Noaa class ForecastResponse def initialize @response = Barometer::Response.new end 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 private attr_reader :response end end end end
Version data entries
6 entries across 6 versions & 1 rubygems