Class: Adminterface::Data::TimeZones
- Defined in:
- lib/adminterface/data/time_zones.rb
Instance Attribute Summary collapse
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(locale, options = {}) ⇒ TimeZones
constructor
A new instance of TimeZones.
Methods inherited from Base
Constructor Details
#initialize(locale, options = {}) ⇒ TimeZones
Returns a new instance of TimeZones.
8 9 10 11 |
# File 'lib/adminterface/data/time_zones.rb', line 8 def initialize(locale, = {}) @locale = locale @options = end |
Instance Attribute Details
#locale ⇒ Object (readonly)
Returns the value of attribute locale.
6 7 8 |
# File 'lib/adminterface/data/time_zones.rb', line 6 def locale @locale end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/adminterface/data/time_zones.rb', line 6 def @options end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/adminterface/data/time_zones.rb', line 13 def call I18n.with_locale(locale) { time_zones } end |