Class: Geonames::CountryInfo
- Inherits:
-
Object
- Object
- Geonames::CountryInfo
- Defined in:
- lib/geonames/country_info.rb
Instance Attribute Summary collapse
-
#area_sq_km ⇒ Object
Returns the value of attribute area_sq_km.
-
#bounding_box ⇒ Object
Returns the value of attribute bounding_box.
-
#capital ⇒ Object
Returns the value of attribute capital.
-
#continent ⇒ Object
Returns the value of attribute continent.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#country_name ⇒ Object
Returns the value of attribute country_name.
-
#currency_code ⇒ Object
Returns the value of attribute currency_code.
-
#fips_code ⇒ Object
Returns the value of attribute fips_code.
-
#geoname_id ⇒ Object
Returns the value of attribute geoname_id.
-
#iso_alpha_3 ⇒ Object
Returns the value of attribute iso_alpha_3.
-
#iso_numeric ⇒ Object
Returns the value of attribute iso_numeric.
-
#languages ⇒ Object
Returns the value of attribute languages.
-
#population ⇒ Object
Returns the value of attribute population.
Instance Method Summary collapse
-
#initialize ⇒ CountryInfo
constructor
A new instance of CountryInfo.
- #set_bounding_box(north, south, east, west) ⇒ Object
Constructor Details
#initialize ⇒ CountryInfo
Returns a new instance of CountryInfo.
9 10 11 12 |
# File 'lib/geonames/country_info.rb', line 9 def initialize @bounding_box = BoundingBox.new @languages = [] end |
Instance Attribute Details
#area_sq_km ⇒ Object
Returns the value of attribute area_sq_km.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def area_sq_km @area_sq_km end |
#bounding_box ⇒ Object
Returns the value of attribute bounding_box.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def bounding_box @bounding_box end |
#capital ⇒ Object
Returns the value of attribute capital.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def capital @capital end |
#continent ⇒ Object
Returns the value of attribute continent.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def continent @continent end |
#country_code ⇒ Object
Returns the value of attribute country_code.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def country_code @country_code end |
#country_name ⇒ Object
Returns the value of attribute country_name.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def country_name @country_name end |
#currency_code ⇒ Object
Returns the value of attribute currency_code.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def currency_code @currency_code end |
#fips_code ⇒ Object
Returns the value of attribute fips_code.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def fips_code @fips_code end |
#geoname_id ⇒ Object
Returns the value of attribute geoname_id.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def geoname_id @geoname_id end |
#iso_alpha_3 ⇒ Object
Returns the value of attribute iso_alpha_3.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def iso_alpha_3 @iso_alpha_3 end |
#iso_numeric ⇒ Object
Returns the value of attribute iso_numeric.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def iso_numeric @iso_numeric end |
#languages ⇒ Object
Returns the value of attribute languages.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def languages @languages end |
#population ⇒ Object
Returns the value of attribute population.
5 6 7 |
# File 'lib/geonames/country_info.rb', line 5 def population @population end |
Instance Method Details
#set_bounding_box(north, south, east, west) ⇒ Object
14 15 16 |
# File 'lib/geonames/country_info.rb', line 14 def set_bounding_box(north, south, east, west) @bounding_box = BoundingBox.new(north, south, east, west) end |