Sha256: 90386c8f574f7ffbd67f3898a8603b2e1ccf1e3df59c317fe97d47fde53b11b6
Contents?: true
Size: 543 Bytes
Versions: 6
Compression:
Stored size: 543 Bytes
Contents
require_relative 'forecast_query' module Barometer module WeatherService class Noaa class ForecastApi < Utils::Api def initialize(query) @query = ForecastQuery.new(query) end def url 'http://graphical.weather.gov/xml/sample_products/browser_interface/ndfdBrowserClientByDay.php' end def params {format: '24 hourly', numDays: '7'}.merge(@query.to_param) end def unwrap_nodes ['dwml', 'data'] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems