Class: MaxMind::GeoIP2::Model::ConnectionType

Inherits:
Abstract
  • Object
show all
Defined in:
lib/maxmind/geoip2/model/connection_type.rb

Overview

Model class for the GeoIP2 Connection Type database.

Instance Method Summary collapse

Instance Method Details

#connection_typeString?

The connection type may take the following values: “Dialup”, “Cable/DSL”, “Corporate”, “Cellular”, and “Satellite”. Additional values may be added in the future.

Returns:

  • (String, nil)


15
16
17
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 15

def connection_type
  get('connection_type')
end

#ip_addressString

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

Returns:

  • (String)


22
23
24
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 22

def ip_address
  get('ip_address')
end

#networkString

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.

Returns:

  • (String)


31
32
33
# File 'lib/maxmind/geoip2/model/connection_type.rb', line 31

def network
  get('network')
end