Class: Icalendar::Todo

Inherits:
Component show all
Defined in:
lib/icalendar/component/todo.rb

Overview

A Todo calendar component is a grouping of component properties and possibly Alarm calendar components that represent an action-item or assignment. For example, it can be used to represent an item of work assigned to an individual; such as “turn in travel expense today”.

Instance Attribute Summary

Attributes inherited from Component

#name, #properties

Instance Method Summary collapse

Methods inherited from Component

#add_component, #add_sliced_text, #custom_property, #escape_chars, #multi_property?, #multiline_property?, #new_uid, #print_component, #print_parameters, #print_properties, #remove_component, #respond_to?, #to_ical

Methods inherited from Base

debug, quiet

Constructor Details

#initializeTodo

Returns a new instance of Todo.



55
56
57
58
59
60
61
# File 'lib/icalendar/component/todo.rb', line 55

def initialize()
  super("VTODO")

  sequence 0
  timestamp DateTime.now
  uid new_uid
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Icalendar::Component