Class: Geocoder::Lookup::Maxmind

Inherits:
Base
  • Object
show all
Defined in:
lib/geocoder/lookups/maxmind.rb

Instance Method Summary collapse

Methods inherited from Base

#cache, #handle, #initialize, #map_link_url, #required_api_key_parts, #search, #supported_protocols

Constructor Details

This class inherits a constructor from Geocoder::Lookup::Base

Instance Method Details

#nameObject



8
9
10
# File 'lib/geocoder/lookups/maxmind.rb', line 8

def name
  "MaxMind"
end

#query_url(query) ⇒ Object



12
13
14
# File 'lib/geocoder/lookups/maxmind.rb', line 12

def query_url(query)
  "#{protocol}://geoip.maxmind.com/#{service_code}?" + url_query_string(query)
end