Class: Factbook::Codes::Code
- Inherits:
-
Object
- Object
- Factbook::Codes::Code
- Defined in:
- lib/factbook-codes/codes.rb
Overview
nested class
Instance Attribute Summary collapse
-
#category ⇒ Object
todo: add notes (country affiliation) - why? why not??.
-
#code ⇒ Object
todo: add notes (country affiliation) - why? why not??.
-
#name ⇒ Object
todo: add notes (country affiliation) - why? why not??.
-
#region ⇒ Object
todo: add notes (country affiliation) - why? why not??.
Instance Method Summary collapse
-
#region_slug ⇒ Object
todo/check: add aliases e.g.
Instance Attribute Details
#category ⇒ Object
todo: add notes (country affiliation) - why? why not??
22 23 24 |
# File 'lib/factbook-codes/codes.rb', line 22 def category @category end |
#code ⇒ Object
todo: add notes (country affiliation) - why? why not??
22 23 24 |
# File 'lib/factbook-codes/codes.rb', line 22 def code @code end |
#name ⇒ Object
todo: add notes (country affiliation) - why? why not??
22 23 24 |
# File 'lib/factbook-codes/codes.rb', line 22 def name @name end |
#region ⇒ Object
todo: add notes (country affiliation) - why? why not??
22 23 24 |
# File 'lib/factbook-codes/codes.rb', line 22 def region @region end |
Instance Method Details
#region_slug ⇒ Object
todo/check: add aliases e.g. - why? why not?
country_code => code
country_name => name
region_name => region
32 |
# File 'lib/factbook-codes/codes.rb', line 32 def region_slug() Factbook.region_to_slug( @region ); end |