class MaxMind::GeoIP2::Record::Continent
Contains data for the continent record associated with an IP address.
This record is returned by all location services and databases.
See {MaxMind::GeoIP2::Record::Place} for inherited methods.
Public Instance Methods
code()
click to toggle source
A two character continent code like “NA” (North America) or “OC” (Oceania). This attribute is returned by all location services and databases.
@return [String, nil]
# File lib/maxmind/geoip2/record/continent.rb, line 39 def code get('code') end
geoname_id()
click to toggle source
The GeoName ID for the continent. This attribute is returned by all location services and databases.
@return [String, nil]
# File lib/maxmind/geoip2/record/continent.rb, line 47 def geoname_id get('geoname_id') end
names()
click to toggle source
A Hash where the keys are locale codes and the values are names. This attribute is returned by all location services and databases.
@return [Hash<String, String>, nil]
# File lib/maxmind/geoip2/record/continent.rb, line 55 def names get('names') end