class RiCal::Component::Event
-
©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license
An Event (VEVENT) calendar component groups properties describing a scheduled event. Events may have multiple occurrences Events may also contain one or more ALARM subcomponents to see the property accessing methods for this class see the RiCal::Properties::Event module to see the methods for enumerating occurrences of recurring events see the RiCal::OccurrenceEnumerator module
Public Instance Methods
finish_property()
click to toggle source
Return a date_time_property representing the time at which the event ends
# File lib/ri_cal/component/event.rb, line 31 def finish_property if dtend_property dtend_property elsif duration_property (dtstart_property + duration_property) else dtstart_property end end
finish_time()
click to toggle source
Return a date_time representing the time at which the event starts
# File lib/ri_cal/component/event.rb, line 42 def finish_time prop = finish_property prop ? prop.to_finish_time : nil end
start_time()
click to toggle source
Return a date_time representing the time at which the event starts
# File lib/ri_cal/component/event.rb, line 26 def start_time dtstart_property ? dtstart.to_datetime : nil end
zulu_occurrence_range_finish_time()
click to toggle source
# File lib/ri_cal/component/event.rb, line 51 def zulu_occurrence_range_finish_time prop = finish_property prop ? prop.to_zulu_occurrence_range_finish_time : nil end
zulu_occurrence_range_start_time()
click to toggle source
# File lib/ri_cal/component/event.rb, line 47 def zulu_occurrence_range_start_time dtstart_property ? dtstart_property.to_zulu_occurrence_range_start_time : nil end