Class: Icalendar::Calendar

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

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

#initializeCalendar

Returns a new instance of Calendar.



15
16
17
18
19
20
# File 'lib/icalendar/calendar.rb', line 15

def initialize
  super 'calendar'
  self.prodid = 'icalendar-ruby'
  self.version = '2.0'
  self.calscale = 'GREGORIAN'
end

Dynamic Method Handling

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

Instance Method Details

#publishObject



22
23
24
# File 'lib/icalendar/calendar.rb', line 22

def publish
  self.ip_method = 'PUBLISH'
end