Class: TZInfo::TZDataFixedOffsetRules
- Inherits:
-
TZDataRules
- Object
- TZDataRules
- TZInfo::TZDataFixedOffsetRules
- Defined in:
- lib/tzinfo/tzdataparser.rb
Overview
Empty rule set with a fixed daylight savings (std) offset.
Instance Attribute Summary collapse
-
#offset ⇒ Object
readonly
:nodoc:.
Attributes inherited from TZDataRules
Instance Method Summary collapse
-
#initialize(offset) ⇒ TZDataFixedOffsetRules
constructor
A new instance of TZDataFixedOffsetRules.
Methods inherited from TZDataRules
Constructor Details
#initialize(offset) ⇒ TZDataFixedOffsetRules
Returns a new instance of TZDataFixedOffsetRules.
365 366 367 368 |
# File 'lib/tzinfo/tzdataparser.rb', line 365 def initialize(offset) super(offset.to_s) @offset = offset end |
Instance Attribute Details
#offset ⇒ Object (readonly)
:nodoc:
363 364 365 |
# File 'lib/tzinfo/tzdataparser.rb', line 363 def offset @offset end |