class Zype::GeoIp

This class does not support all, create, update or delete methods. Read more at docs.zype.com/v1.0/reference#getgeoip-1

@since 0.10.0

Public Instance Methods

find(ip_address:) click to toggle source

Retrieve the GeoIP object for a specific IP Address

@param ip_address [String] value for the IP Adress you want to look up @return [Hash]

# File lib/zype/models/geo_ip.rb, line 17
def find(ip_address:)
  client.execute(method: :get, path: "/#{path}", params: { ip_address: ip_address })
end

Private Instance Methods

path() click to toggle source
# File lib/zype/models/geo_ip.rb, line 23
def path
  @path = 'geoip'
end