Class: Icalendar::Journal

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

Constant Summary

Constants included from HasComponents

HasComponents::METHOD_MISSING_ADD_REGEX, HasComponents::METHOD_MISSING_X_FLAG_REGEX

Instance Attribute Summary

Attributes inherited from Component

#ical_name, #name, #parent

Instance Method Summary collapse

Methods inherited from Component

#new_uid, parse, #to_ical

Methods included from HasComponents

#add_component, #add_custom_component, #custom_component, included, #method_missing, #respond_to_missing?

Methods included from HasProperties

#append_custom_property, #custom_property, included, #method_missing, #property, #respond_to_missing?, #valid?

Constructor Details

#initializeJournal

Returns a new instance of Journal.



35
36
37
38
39
# File 'lib/icalendar/journal.rb', line 35

def initialize
  super 'journal'
  self.dtstamp = Icalendar::Values::DateTime.new Time.now.utc, 'tzid' => 'UTC'
  self.uid = new_uid
end

Dynamic Method Handling

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