Sha256: 3225a4bef7657c19f4f4a43d65424319d74662f575ff1188cc43e8c607d21405
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
module RiCal class Component # 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 class Event < Component include OccurrenceEnumerator include RiCal::Properties::Event def subcomponent_class #:nodoc: {:alarm => Alarm } end def self.entity_name #:nodoc: "VEVENT" end # Return a date_time representing the time at which the event starts def start_time dtstart_property ? dtstart.to_datetime : nil end # Return a date_time_property representing the time at which the event ends def finish_property if dtend_property dtend_property elsif duration_property (dtstart_property + duration_property) else dtstart_property end end # Return a date_time representing the time at which the event starts def finish_time prop = finish_property prop ? prop.to_finish_time : nil end def zulu_occurrence_range_start_time dtstart_property ? dtstart_property.to_zulu_occurrence_range_start_time : nil end def zulu_occurrence_range_finish_time prop = finish_property prop ? prop.to_zulu_occurrence_range_finish_time : nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friflaj_ri_cal-0.9.0 | lib/ri_cal/component/event.rb |