Class: TwitterCldr::Resources::TimezonesImporter::TimezoneData
- Inherits:
-
Object
- Object
- TwitterCldr::Resources::TimezonesImporter::TimezoneData
- Defined in:
- lib/twitter_cldr/resources/timezones_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) ⇒ TimezoneData
constructor
A new instance of TimezoneData.
- #to_h ⇒ Object
Constructor Details
#initialize(locale, cldr_req) ⇒ TimezoneData
Returns a new instance of TimezoneData.
88 89 90 91 |
# File 'lib/twitter_cldr/resources/timezones_importer.rb', line 88 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.
86 87 88 |
# File 'lib/twitter_cldr/resources/timezones_importer.rb', line 86 def cldr_req @cldr_req end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
86 87 88 |
# File 'lib/twitter_cldr/resources/timezones_importer.rb', line 86 def locale @locale end |
Instance Method Details
#to_h ⇒ Object
93 94 95 96 97 98 99 |
# File 'lib/twitter_cldr/resources/timezones_importer.rb', line 93 def to_h { formats: formats, timezones: timezones, metazones: } end |