class MaxMind::GeoIP2::Model::ASN
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/asn.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/asn.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/asn.rb, line 28 def ip_address get('ip_address') 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/asn.rb, line 37 def network get('network') end