Class: Geocoder::Lookup::Ipregistry

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

Constant Summary collapse

ERROR_CODES =
{
  400 => Geocoder::InvalidRequest,
  401 => Geocoder::InvalidRequest,
  402 => Geocoder::OverQueryLimitError,
  403 => Geocoder::InvalidApiKey,
  451 => Geocoder::RequestDenied,
  500 => Geocoder::Error
}

Instance Method Summary collapse

Methods inherited from Base

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

Constructor Details

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

Instance Method Details

#nameObject



17
18
19
# File 'lib/geocoder/lookups/ipregistry.rb', line 17

def name
  "Ipregistry"
end

#supported_protocolsObject



21
22
23
# File 'lib/geocoder/lookups/ipregistry.rb', line 21

def supported_protocols
  [:https, :http]
end