Class: Icalendar::Freebusy

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

Overview

A Freebusy calendar component is a grouping of component properties that represents either a request for, a reply to a request for free or busy time information or a published set of busy time information.

Constant Summary

Constants inherited from Component

Component::CAL_EXTENSION_REGEX

Instance Attribute Summary

Attributes inherited from Component

#name, #properties

Instance Method Summary collapse

Methods inherited from Component

#add_component, #chunk_lines, #custom_property, #escape_chars, #fix_conflict_with_built_in, #method_missing, #multi_property?, #multiline_property?, #new_uid, #print_component, #print_headers, #print_parameters, #print_properties, #print_subcomponents, #printer, #properties_to_print, #remove_component, #respond_to_missing?, #to_ical

Methods inherited from Base

debug, quiet

Constructor Details

#initializeFreebusy

Returns a new instance of Freebusy.



31
32
33
34
35
36
# File 'lib/icalendar/component/freebusy.rb', line 31

def initialize()
  super("VFREEBUSY")

  timestamp Time.now.utc.to_datetime.tap { |t| t.icalendar_tzid = 'UTC' }
  uid new_uid
end

Dynamic Method Handling

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