Class: Icalendar::Journal

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

Overview

A Journal calendar component is a grouping of component properties that represent one or more descriptive text notes associated with a particular calendar date. The “DTSTART” property is used to specify the calendar date that the journal entry is associated with. Generally, it will have a DATE value data type, but it can also be used to specify a DATE-TIME value data type. Examples of a journal entry include a daily record of a legislative body or a journal entry of individual telephone contacts for the day or an ordered list of accomplishments for the day. The Journal calendar component can also be used to associate a document with a calendar date.

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

#initializeJournal

Returns a new instance of Journal.



51
52
53
54
55
56
57
# File 'lib/icalendar/component/journal.rb', line 51

def initialize()
  super("VJOURNAL")

  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