Class/Module Index [+]

Quicksearch

RiCal::Component::Todo

A Todo (VTODO) calendar component groups properties describing a to-do
Todos may have multiple occurrences

Todos may also contain one or more ALARM subcomponents
to see the property accessing methods for this class see the RiCal::Properties::Todo module
to see the methods for enumerating occurrences of recurring to-dos see the RiCal::OccurrenceEnumerator module

Public Instance Methods

finish_time() click to toggle source

Return a date_time representing the time at which the todo is due

# File lib/ri_cal/component/todo.rb, line 30
def finish_time
  if due
    due_property.to_finish_time
  elsif duration_property && dtstart_property
    (dtstart_property + duration_property).to_finish_time
  else
    nil
  end
end
start_time() click to toggle source

Return a date_time representing the time at which the todo should start

# File lib/ri_cal/component/todo.rb, line 25
def start_time
  dtstart_property ? dtstart.to_datetime : nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.