Class: WorldLite::Country

Inherits:
Object
  • Object
show all
Defined in:
lib/worldlite/country.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCountry

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

#alpha2Object

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def alpha2
  @alpha2
end

#alpha3Object

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def alpha3
  @alpha3
end

#fifaObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def fifa
  @fifa
end

#iocObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def ioc
  @ioc
end

#keyObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def key
  @key
end

#kindObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def kind
  @kind
end

#nameObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def name
  @name
end

#numObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def num
  @num
end

#unObject

country name e.g. Austria



19
20
21
# File 'lib/worldlite/country.rb', line 19

def un
  @un
end

Class Method Details

.allObject



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