Class: Exchanger::Contact

Inherits:
Item show all
Defined in:
lib/exchanger/elements/contact.rb

Overview

The Contact element represents a contact item in the Exchanger store. msdn.microsoft.com/en-us/library/aa581315.aspx

Instance Attribute Summary

Attributes inherited from Item

#parent_folder

Attributes inherited from Element

#tag_name

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Item

#categories_with_color, #file_attachments, find, find_all, find_all_by_folder_id, find_calendar_view_set_by_folder_id, #move_to_folder, #new_file_attachment

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

Class Method Details

.search(name) ⇒ Object



44
45
46
47
# File 'lib/exchanger/elements/contact.rb', line 44

def self.search(name)
  response = Exchanger::ResolveNames.run(:name => name)
  response.contacts
end

Instance Method Details

#private?Boolean

Marked as private in Outlook?

Returns:



40
41
42
# File 'lib/exchanger/elements/contact.rb', line 40

def private?
  sensitivity == "Private"
end