Class: Widgeo::Territory
- Inherits:
-
Object
- Object
- Widgeo::Territory
- Extended by:
- Collection
- Includes:
- Model
- Defined in:
- lib/widgeo/territory.rb
Overview
Working with territories
Instance Attribute Summary collapse
-
#alpha_2 ⇒ Object
readonly
Returns the value of attribute alpha_2.
-
#continent_alpha_2 ⇒ Object
readonly
Returns the value of attribute continent_alpha_2.
-
#long_name ⇒ Object
readonly
Returns the value of attribute long_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#continent ⇒ Object
Load an instance of the continent.
Methods included from Collection
all, dataset, dataset_file, filter_by, find_by, matches?
Methods included from Model
Instance Attribute Details
#alpha_2 ⇒ Object (readonly)
Returns the value of attribute alpha_2.
9 10 11 |
# File 'lib/widgeo/territory.rb', line 9 def alpha_2 @alpha_2 end |
#continent_alpha_2 ⇒ Object (readonly)
Returns the value of attribute continent_alpha_2.
9 10 11 |
# File 'lib/widgeo/territory.rb', line 9 def continent_alpha_2 @continent_alpha_2 end |
#long_name ⇒ Object (readonly)
Returns the value of attribute long_name.
9 10 11 |
# File 'lib/widgeo/territory.rb', line 9 def long_name @long_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/widgeo/territory.rb', line 9 def name @name end |