Class: MaxMind::GeoIP2::Record::RepresentedCountry

Inherits:
Country
  • Object
show all
Defined in:
lib/maxmind/geoip2/record/represented_country.rb

Overview

Contains data for the represented country associated with an IP address.

This class contains the country-level data associated with an IP address for the IP’s represented country. The represented country is the country represented by something like a military base.

See Country for inherited methods.

Instance Method Summary collapse

Methods inherited from Country

#confidence, #geoname_id, #in_european_union?, #iso_code, #names

Methods inherited from Place

#name

Instance Method Details

#typeString?

A string indicating the type of entity that is representing the country. Currently we only return military but this could expand to include other types in the future.

Returns:

  • (String, nil)


21
22
23
# File 'lib/maxmind/geoip2/record/represented_country.rb', line 21

def type
  get('type')
end