Class: Barometer::Query::Service::YahooGeocode
- Inherits:
-
Object
- Object
- Barometer::Query::Service::YahooGeocode
- Defined in:
- lib/barometer/query/services/yahoo_geocode.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(query) ⇒ YahooGeocode
constructor
A new instance of YahooGeocode.
Constructor Details
#initialize(query) ⇒ YahooGeocode
Returns a new instance of YahooGeocode.
7 8 9 |
# File 'lib/barometer/query/services/yahoo_geocode.rb', line 7 def initialize(query) @query = query end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/barometer/query/services/yahoo_geocode.rb', line 11 def call converted_query = query.get_conversion(:woe_id, :ipv4_address) return unless converted_query @payload = YahooPlacefinder::Api.new(converted_query).get parse_payload end |