class MaxMind::GeoIP2::Model::ISP

Model class for the GeoIP2 ISP database.

Public Instance Methods

autonomous_system_number() click to toggle source

The autonomous system number associated with the IP address.

@return [Integer, nil]

# File lib/maxmind/geoip2/model/isp.rb, line 13
def autonomous_system_number
  get('autonomous_system_number')
end
autonomous_system_organization() click to toggle source

The organization associated with the registered autonomous system number for the IP address.

@return [String, nil]

# File lib/maxmind/geoip2/model/isp.rb, line 21
def autonomous_system_organization
  get('autonomous_system_organization')
end
ip_address() click to toggle source

The IP address that the data in the model is for.

@return [String]

# File lib/maxmind/geoip2/model/isp.rb, line 28
def ip_address
  get('ip_address')
end
isp() click to toggle source

The name of the ISP associated with the IP address.

@return [String, nil]

# File lib/maxmind/geoip2/model/isp.rb, line 35
def isp
  get('isp')
end
network() click to toggle source

The network in CIDR notation associated with the record. In particular, this is the largest network where all of the fields besides ip_address have the same value.

@return [String]

# File lib/maxmind/geoip2/model/isp.rb, line 44
def network
  get('network')
end
organization() click to toggle source

The name of the organization associated with the IP address.

@return [String, nil]

# File lib/maxmind/geoip2/model/isp.rb, line 51
def organization
  get('organization')
end