Class: RiCal::Component::Calendar::TimezoneID

Inherits:
Object
  • Object
show all
Defined in:
lib/ri_cal/component/calendar.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#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

#calendarObject (readonly)

Returns the value of attribute calendar.



89
90
91
# File 'lib/ri_cal/component/calendar.rb', line 89

def calendar
  @calendar
end

#identifierObject (readonly)

Returns the value of attribute identifier.



89
90
91
# File 'lib/ri_cal/component/calendar.rb', line 89

def identifier
  @identifier
end

Instance Method Details

#local_to_utc(local) ⇒ Object



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

#resolvedObject



98
99
100
# File 'lib/ri_cal/component/calendar.rb', line 98

def resolved
  calendar.find_timezone(identifier)
end

#tzinfo_timezoneObject



94
95
96
# File 'lib/ri_cal/component/calendar.rb', line 94

def tzinfo_timezone
  nil
end