class Geocoder::Lookup::IpapiCom

Public Instance Methods

name() click to toggle source
# File lib/geocoder/lookups/ipapi_com.rb, line 7
def name
  "ip-api.com"
end
supported_protocols() click to toggle source
# File lib/geocoder/lookups/ipapi_com.rb, line 11
def supported_protocols
  if configuration.api_key
    [:http, :https]
  else
    [:http]
  end
end