Class: Exchanger::CalendarFolder

Inherits:
BaseFolder show all
Defined in:
lib/exchanger/elements/calendar_folder.rb

Constant Summary

Constants inherited from BaseFolder

BaseFolder::DISTINGUISHED_NAMES

Instance Attribute Summary

Attributes inherited from BaseFolder

#parent_folder

Attributes inherited from Element

#tag_name

Instance Method Summary collapse

Methods inherited from BaseFolder

#category_list, #expanded_items, find, find_all, find_all_by_parent_id, #folders, #items

Methods inherited from Element

#==, #assign_attributes_from_xml, create_element_accessors, element, #errors, #initialize, #inspect, key, new_from_xml, #to_xml, #to_xml_change, #to_xml_updates

Methods included from Persistence

#destroy, #new_record?, #persisted?, #reload, #save

Methods included from Dirty

#attribute_change, #attribute_changed?, #attribute_was, #changed, #changed?, #changes, included, #move_changes, #previous_changes, #reset_attribute!, #reset_modifications, #setup_modifications

Methods included from Attributes

#attributes, #attributes=, #change_key, #id, #identifier, #method_missing, #read_attribute, #respond_to?, #write_attribute

Constructor Details

This class inherits a constructor from Exchanger::Element

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Exchanger::Attributes

Instance Method Details

#new_calendar_item(attributes = {}) ⇒ Object



5
6
7
8
9
# File 'lib/exchanger/elements/calendar_folder.rb', line 5

def new_calendar_item(attributes = {})
  contact = CalendarItem.new(attributes)
  contact.parent_folder_id = folder_id
  contact
end