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”. Additional values may be added in the future.

Returns:

  • (String, nil)

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

def connection_type
  get('connection_type')
end

#ip_addressString

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

Returns:

  • (String)

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

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)

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

def network
  get('network')
end