Class: TZInfo::TZDataFixedOffsetRules

Inherits:
TZDataRules show all
Defined in:
lib/tzinfo/tzdataparser.rb

Overview

Empty rule set with a fixed daylight savings (std) offset.

Instance Attribute Summary collapse

Attributes inherited from TZDataRules

#name

Instance Method Summary collapse

Methods inherited from TZDataRules

#count

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

#offsetObject (readonly)

:nodoc:



363
364
365
# File 'lib/tzinfo/tzdataparser.rb', line 363

def offset
  @offset
end