Class: TwitterCldr::Resources::TimezonesImporter::TimezoneData

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/resources/timezones_importer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_reqObject (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

#localeObject (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_hObject



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: metazones
  }
end