Module: Geoip2::Api::Country

Included in:
Client
Defined in:
lib/geoip2/api/country.rb

Instance Method Summary collapse

Instance Method Details

#country(ip, faraday_options = {}) ⇒ Object



4
5
6
# File 'lib/geoip2/api/country.rb', line 4

def country(ip, faraday_options = {})
  get("/country/#{ip}", {}, faraday_options)
end