Sha256: b7fca589fae0a59fde174d15bffca3b06fc624d38c8e65bf8dba65f38f401a9a

Contents?: true

Size: 416 Bytes

Versions: 8

Compression:

Stored size: 416 Bytes

Contents

require_relative 'query'

module Barometer
  module WeatherService
    class WundergroundV1
      class ForecastApi < Utils::Api
        def initialize(query)
          @query = WundergroundV1::Query.new(query)
        end

        def url
          'http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml'
        end

        def unwrap_nodes
          ['forecast']
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
barometer-0.9.7 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.6 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.5 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.4 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.3 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.2 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.1 lib/barometer/weather_services/wunderground_v1/forecast_api.rb
barometer-0.9.0 lib/barometer/weather_services/wunderground_v1/forecast_api.rb