Class: MaxMind::GeoIP2::Record::Continent
- Defined in:
- lib/maxmind/geoip2/record/continent.rb
Overview
Contains data for the continent record associated with an IP address.
This record is returned by all location services and databases.
See Place for inherited methods.
Instance Method Summary collapse
-
#code ⇒ String?
A two character continent code like “NA” (North America) or “OC” (Oceania).
-
#geoname_id ⇒ String?
The GeoName ID for the continent.
-
#names ⇒ Hash<String, String>?
A Hash where the keys are locale codes and the values are names.
Methods inherited from Place
Instance Method Details
#code ⇒ String?
A two character continent code like “NA” (North America) or “OC” (Oceania). This attribute is returned by all location services and databases.
19 20 21 |
# File 'lib/maxmind/geoip2/record/continent.rb', line 19 def code get('code') end |
#geoname_id ⇒ String?
The GeoName ID for the continent. This attribute is returned by all location services and databases.
27 28 29 |
# File 'lib/maxmind/geoip2/record/continent.rb', line 27 def geoname_id get('geoname_id') end |
#names ⇒ Hash<String, String>?
A Hash where the keys are locale codes and the values are names. This attribute is returned by all location services and databases.
35 36 37 |
# File 'lib/maxmind/geoip2/record/continent.rb', line 35 def names get('names') end |