Class: Geonames::CountryInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/geonames/country_info.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCountryInfo

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_kmObject

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_boxObject

Returns the value of attribute bounding_box.



5
6
7
# File 'lib/geonames/country_info.rb', line 5

def bounding_box
  @bounding_box
end

#capitalObject

Returns the value of attribute capital.



5
6
7
# File 'lib/geonames/country_info.rb', line 5

def capital
  @capital
end

#continentObject

Returns the value of attribute continent.



5
6
7
# File 'lib/geonames/country_info.rb', line 5

def continent
  @continent
end

#country_codeObject

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_nameObject

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_codeObject

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_codeObject

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_idObject

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_3Object

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_numericObject

Returns the value of attribute iso_numeric.



5
6
7
# File 'lib/geonames/country_info.rb', line 5

def iso_numeric
  @iso_numeric
end

#languagesObject

Returns the value of attribute languages.



5
6
7
# File 'lib/geonames/country_info.rb', line 5

def languages
  @languages
end

#populationObject

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