class Geocoder::Lookup::IpdataCo
Public Instance Methods
name()
click to toggle source
# File lib/geocoder/lookups/ipdata_co.rb, line 7 def name "ipdata.co" end
query_url(query)
click to toggle source
# File lib/geocoder/lookups/ipdata_co.rb, line 15 def query_url(query) # Ipdata.co requires that the API key be sent as a query parameter. # It no longer supports API keys sent as headers. "#{protocol}://#{host}/#{query.sanitized_text}?api-key=#{configuration.api_key}" end
supported_protocols()
click to toggle source
# File lib/geocoder/lookups/ipdata_co.rb, line 11 def supported_protocols [:https] end