Class: TwitterCldr::Resources::TerritoriesImporter::TerritoryData
- Inherits:
-
Object
- Object
- TwitterCldr::Resources::TerritoriesImporter::TerritoryData
- Defined in:
- lib/twitter_cldr/resources/territories_importer.rb
Instance Attribute Summary collapse
-
#cldr_req ⇒ Object
readonly
Returns the value of attribute cldr_req.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
Instance Method Summary collapse
-
#initialize(locale, cldr_req) ⇒ TerritoryData
constructor
A new instance of TerritoryData.
- #to_h ⇒ Object
Constructor Details
#initialize(locale, cldr_req) ⇒ TerritoryData
Returns a new instance of TerritoryData.
53 54 55 56 |
# File 'lib/twitter_cldr/resources/territories_importer.rb', line 53 def initialize(locale, cldr_req) @locale = locale @cldr_req = cldr_req end |
Instance Attribute Details
#cldr_req ⇒ Object (readonly)
Returns the value of attribute cldr_req.
51 52 53 |
# File 'lib/twitter_cldr/resources/territories_importer.rb', line 51 def cldr_req @cldr_req end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
51 52 53 |
# File 'lib/twitter_cldr/resources/territories_importer.rb', line 51 def locale @locale end |
Instance Method Details
#to_h ⇒ Object
58 59 60 |
# File 'lib/twitter_cldr/resources/territories_importer.rb', line 58 def to_h { territories: Territories.deep_normalize_territory_code_keys(territories) } end |