Class: TZInfo::TimezoneInfo

Inherits:
Object show all
Defined in:
lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb

Overview

Represents a timezone defined in a data module.

Direct Known Subclasses

DataTimezoneInfo, LinkedTimezoneInfo

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier) ⇒ TimezoneInfo

Constructs a new TimezoneInfo with an identifier.



31
32
33
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 31

def initialize(identifier)
  @identifier = identifier
end

Instance Attribute Details

#identifierObject (readonly)

The timezone identifier.



28
29
30
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 28

def identifier
  @identifier
end

Instance Method Details

#inspectObject

Returns internal object state as a programmer-readable string.



36
37
38
# File 'lib/gems/activesupport-2.2.2/lib/active_support/vendor/tzinfo-0.3.12/tzinfo/timezone_info.rb', line 36

def inspect
  "#<#{self.class}: #@identifier>"
end