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
#initialize(identifier, calendar) ⇒ TimezoneID
Returns a new instance of TimezoneID.
92 93 94 |
# File 'lib/ri_cal/component/calendar.rb', line 92 def initialize(identifier, calendar) self.identifier, self.calendar = identifier, calendar end |
Instance Attribute Details
#calendar ⇒ Object (readonly)
Returns the value of attribute calendar.
91 92 93 |
# File 'lib/ri_cal/component/calendar.rb', line 91 def calendar @calendar end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
91 92 93 |
# File 'lib/ri_cal/component/calendar.rb', line 91 def identifier @identifier end |
Instance Method Details
#local_to_utc(local) ⇒ Object
104 105 106 |
# File 'lib/ri_cal/component/calendar.rb', line 104 def local_to_utc(local) resolved.local_to_utc(date_time_prop) end |
#resolved ⇒ Object
100 101 102 |
# File 'lib/ri_cal/component/calendar.rb', line 100 def resolved calendar.find_timezone(identifier) end |
#tzinfo_timezone ⇒ Object
96 97 98 |
# File 'lib/ri_cal/component/calendar.rb', line 96 def tzinfo_timezone nil end |