Class: TZInfo::LinkedTimezoneInfo
- Inherits:
-
TimezoneInfo
- Object
- TimezoneInfo
- TZInfo::LinkedTimezoneInfo
- Defined in:
- lib/tzinfo/linked_timezone_info.rb
Overview
Represents a linked timezone defined in a data module.
Instance Attribute Summary collapse
-
#link_to_identifier ⇒ Object
readonly
The zone that provides the data (that this zone is an alias for).
Attributes inherited from TimezoneInfo
Instance Method Summary collapse
-
#initialize(identifier, link_to_identifier) ⇒ LinkedTimezoneInfo
constructor
Constructs a new TimezoneInfo with an identifier and the identifier of the zone linked to.
-
#inspect ⇒ Object
Returns internal object state as a programmer-readable string.
Constructor Details
#initialize(identifier, link_to_identifier) ⇒ LinkedTimezoneInfo
Constructs a new TimezoneInfo with an identifier and the identifier of the zone linked to.
32 33 34 35 |
# File 'lib/tzinfo/linked_timezone_info.rb', line 32 def initialize(identifier, link_to_identifier) super(identifier) @link_to_identifier = link_to_identifier end |
Instance Attribute Details
#link_to_identifier ⇒ Object (readonly)
The zone that provides the data (that this zone is an alias for).
28 29 30 |
# File 'lib/tzinfo/linked_timezone_info.rb', line 28 def link_to_identifier @link_to_identifier end |
Instance Method Details
#inspect ⇒ Object
Returns internal object state as a programmer-readable string.
38 39 40 |
# File 'lib/tzinfo/linked_timezone_info.rb', line 38 def inspect "#<#{self.class}: #@identifier,#@link_to_identifier>" end |