Class: MaxMind::GeoIP2::Model::ASN
- Inherits:
-
Abstract
- Object
- Abstract
- MaxMind::GeoIP2::Model::ASN
- Defined in:
- lib/maxmind/geoip2/model/asn.rb
Overview
Model class for the GeoLite2 ASN database.
Instance Method Summary collapse
-
#autonomous_system_number ⇒ Integer?
The autonomous system number associated with the IP address.
-
#autonomous_system_organization ⇒ String?
The organization associated with the registered autonomous system number for the IP address.
-
#ip_address ⇒ String
The IP address that the data in the model is for.
-
#network ⇒ String
The network in CIDR notation associated with the record.
Instance Method Details
#autonomous_system_number ⇒ Integer?
The autonomous system number associated with the IP address.
13 14 15 |
# File 'lib/maxmind/geoip2/model/asn.rb', line 13 def autonomous_system_number get('autonomous_system_number') end |
#autonomous_system_organization ⇒ String?
The organization associated with the registered autonomous system number for the IP address.
21 22 23 |
# File 'lib/maxmind/geoip2/model/asn.rb', line 21 def autonomous_system_organization get('autonomous_system_organization') end |
#ip_address ⇒ String
The IP address that the data in the model is for.
28 29 30 |
# File 'lib/maxmind/geoip2/model/asn.rb', line 28 def ip_address get('ip_address') end |
#network ⇒ String
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.
37 38 39 |
# File 'lib/maxmind/geoip2/model/asn.rb', line 37 def network get('network') end |