Sha256: 34e92f8aa22840e0322ef4d46d3c65f108ec1528973d7d1e24bbeb002c2b4a8d

Contents?: true

Size: 374 Bytes

Versions: 7

Compression:

Stored size: 374 Bytes

Contents

require_relative 'query'

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

        def url
          'http://weather.yahooapis.com/forecastrss'
        end

        def unwrap_nodes
          ['rss', 'channel']
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
barometer-0.9.6 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.5 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.4 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.3 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.2 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.1 lib/barometer/weather_services/yahoo/api.rb
barometer-0.9.0 lib/barometer/weather_services/yahoo/api.rb