Class: Icalendar::Calendar
- Defined in:
- lib/icalendar/calendar.rb
Instance Attribute Summary
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize ⇒ Calendar
constructor
A new instance of Calendar.
- #publish ⇒ Object
Methods inherited from Component
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
#initialize ⇒ Calendar
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
#publish ⇒ Object
22 23 24 |
# File 'lib/icalendar/calendar.rb', line 22 def publish self.ip_method = 'PUBLISH' end |