Class: Geocoder::Lookup::Freegeoip
- Defined in:
- lib/geocoder/lookups/freegeoip.rb
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
#name ⇒ Object
7 8 9 |
# File 'lib/geocoder/lookups/freegeoip.rb', line 7 def name "FreeGeoIP" end |
#supported_protocols ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/geocoder/lookups/freegeoip.rb', line 11 def supported_protocols if configuration[:host] [:https] else # use https for default host [:https] end end |