Class: MaxMind::GeoIP2::Model::ConnectionType
- Inherits:
-
Abstract
- Object
- Abstract
- MaxMind::GeoIP2::Model::ConnectionType
- Defined in:
- lib/maxmind/geoip2/model/connection_type.rb
Overview
Model class for the GeoIP2 Connection Type database.
Instance Method Summary collapse
-
#connection_type ⇒ String?
The connection type may take the following values: “Dialup”, “Cable/DSL”, “Corporate”, “Cellular”, and “Satellite”.
-
#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
#connection_type ⇒ String?
The connection type may take the following values: “Dialup”, “Cable/DSL”, “Corporate”, “Cellular”, and “Satellite”. Additional values may be added in the future.
15 16 17 |
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 15 def connection_type get('connection_type') end |
#ip_address ⇒ String
The IP address that the data in the model is for.
22 23 24 |
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 22 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.
31 32 33 |
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 31 def network get('network') end |