Class: RiCal::Component::Calendar::TimezoneID
- Defined in:
- lib/ri_cal/component/calendar.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#calendar ⇒ Object
readonly
Returns the value of attribute calendar.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Instance Method Summary collapse
-
#initialize(identifier, calendar) ⇒ TimezoneID
constructor
A new instance of TimezoneID.
- #local_to_utc(local) ⇒ Object
- #resolved ⇒ Object
- #tzinfo_timezone ⇒ Object
Constructor Details
permalink #initialize(identifier, calendar) ⇒ TimezoneID
Returns a new instance of TimezoneID.
90 91 92 |
# File 'lib/ri_cal/component/calendar.rb', line 90 def initialize(identifier, calendar) self.identifier, self.calendar = identifier, calendar end |
Instance Attribute Details
Instance Method Details
permalink #local_to_utc(local) ⇒ Object
[View source]
102 103 104 |
# File 'lib/ri_cal/component/calendar.rb', line 102 def local_to_utc(local) resolved.local_to_utc(date_time_prop) end |
permalink #resolved ⇒ Object
[View source]
98 99 100 |
# File 'lib/ri_cal/component/calendar.rb', line 98 def resolved calendar.find_timezone(identifier) end |
permalink #tzinfo_timezone ⇒ Object
[View source]
94 95 96 |
# File 'lib/ri_cal/component/calendar.rb', line 94 def tzinfo_timezone nil end |