Method: MaxMind::GeoIP2::Record::Traits#network

Defined in:
lib/maxmind/geoip2/record/traits.rb

#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, nil)


185
186
187
# File 'lib/maxmind/geoip2/record/traits.rb', line 185

def network
  get('network')
end