Class: MaxMind::GeoIP2::Model::ISP
- Inherits:
-
Abstract
- Object
- Abstract
- MaxMind::GeoIP2::Model::ISP
- Defined in:
- lib/maxmind/geoip2/model/isp.rb
Overview
Model class for the GeoIP2 ISP 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.
-
#isp ⇒ String?
The name of the ISP associated with the IP address.
-
#mobile_country_code ⇒ String?
The mobile country code (MCC) associated with the IP address and ISP.
-
#mobile_network_code ⇒ String?
The mobile network code (MNC) associated with the IP address and ISP.
-
#network ⇒ String
The network in CIDR notation associated with the record.
-
#organization ⇒ String?
The name of the organization associated with the IP address.
Instance Method Details
#autonomous_system_number ⇒ Integer?
The autonomous system number associated with the IP address.
13 14 15 |
# File 'lib/maxmind/geoip2/model/isp.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/isp.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/isp.rb', line 28 def ip_address get('ip_address') end |
#isp ⇒ String?
The name of the ISP associated with the IP address.
35 36 37 |
# File 'lib/maxmind/geoip2/model/isp.rb', line 35 def isp get('isp') end |
#mobile_country_code ⇒ String?
The mobile country code (MCC) associated with the IP address and ISP.
43 44 45 |
# File 'lib/maxmind/geoip2/model/isp.rb', line 43 def mobile_country_code get('mobile_country_code') end |
#mobile_network_code ⇒ String?
The mobile network code (MNC) associated with the IP address and ISP.
51 52 53 |
# File 'lib/maxmind/geoip2/model/isp.rb', line 51 def mobile_network_code get('mobile_network_code') 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.
60 61 62 |
# File 'lib/maxmind/geoip2/model/isp.rb', line 60 def network get('network') end |
#organization ⇒ String?
The name of the organization associated with the IP address.
67 68 69 |
# File 'lib/maxmind/geoip2/model/isp.rb', line 67 def organization get('organization') end |