Class: WorldLite::Country
- Inherits:
-
Object
- Object
- WorldLite::Country
- Defined in:
- lib/worldlite/country.rb
Instance Attribute Summary collapse
-
#alpha2 ⇒ Object
country name e.g.
-
#alpha3 ⇒ Object
country name e.g.
-
#fifa ⇒ Object
country name e.g.
-
#ioc ⇒ Object
country name e.g.
-
#key ⇒ Object
country name e.g.
-
#kind ⇒ Object
country name e.g.
-
#name ⇒ Object
country name e.g.
-
#num ⇒ Object
country name e.g.
-
#un ⇒ Object
country name e.g.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Country
constructor
A new instance of Country.
Constructor Details
#initialize ⇒ Country
Returns a new instance of Country.
32 33 34 |
# File 'lib/worldlite/country.rb', line 32 def initialize @kind = 'CTRY' # default to 'sovereign' country - why? why not? end |
Instance Attribute Details
#alpha2 ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def alpha2 @alpha2 end |
#alpha3 ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def alpha3 @alpha3 end |
#fifa ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def fifa @fifa end |
#ioc ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def ioc @ioc end |
#key ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def key @key end |
#kind ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def kind @kind end |
#name ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def name @name end |
#num ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def num @num end |
#un ⇒ Object
country name e.g. Austria
19 20 21 |
# File 'lib/worldlite/country.rb', line 19 def un @un end |
Class Method Details
.all ⇒ Object
37 38 39 40 |
# File 'lib/worldlite/country.rb', line 37 def self.all ## return all countries as an ary e.g. use Country.all WORLD end |