Class: Zm::Client::Contact
- Inherits:
-
Base::Object
- Object
- Base::Object
- Zm::Client::Contact
- Defined in:
- lib/zm/client/contact/contact.rb
Overview
class account tag
Constant Summary collapse
- GROUP_PATTERN =
'group'
Instance Attribute Summary collapse
-
#anniversary ⇒ Object
Returns the value of attribute anniversary.
-
#assistantPhone ⇒ Object
Returns the value of attribute assistantPhone.
-
#birthday ⇒ Object
Returns the value of attribute birthday.
-
#callbackPhone ⇒ Object
Returns the value of attribute callbackPhone.
-
#carPhone ⇒ Object
Returns the value of attribute carPhone.
-
#company ⇒ Object
Returns the value of attribute company.
-
#companyPhone ⇒ Object
Returns the value of attribute companyPhone.
-
#custom1 ⇒ Object
Returns the value of attribute custom1.
-
#department ⇒ Object
Returns the value of attribute department.
-
#email ⇒ Object
Returns the value of attribute email.
-
#email2 ⇒ Object
Returns the value of attribute email2.
-
#email3 ⇒ Object
Returns the value of attribute email3.
-
#email4 ⇒ Object
Returns the value of attribute email4.
-
#email5 ⇒ Object
Returns the value of attribute email5.
-
#email6 ⇒ Object
Returns the value of attribute email6.
-
#email7 ⇒ Object
Returns the value of attribute email7.
-
#firstName ⇒ Object
Returns the value of attribute firstName.
-
#fullName ⇒ Object
Returns the value of attribute fullName.
-
#homeCity ⇒ Object
Returns the value of attribute homeCity.
-
#homeCountry ⇒ Object
Returns the value of attribute homeCountry.
-
#homeFax ⇒ Object
Returns the value of attribute homeFax.
-
#homePhone ⇒ Object
Returns the value of attribute homePhone.
-
#homePostalCode ⇒ Object
Returns the value of attribute homePostalCode.
-
#homeState ⇒ Object
Returns the value of attribute homeState.
-
#homeStreet ⇒ Object
Returns the value of attribute homeStreet.
-
#homeURL ⇒ Object
Returns the value of attribute homeURL.
-
#imAddress1 ⇒ Object
Returns the value of attribute imAddress1.
-
#imAddress2 ⇒ Object
Returns the value of attribute imAddress2.
-
#imAddress3 ⇒ Object
Returns the value of attribute imAddress3.
-
#imAddress4 ⇒ Object
Returns the value of attribute imAddress4.
-
#imAddress5 ⇒ Object
Returns the value of attribute imAddress5.
-
#image ⇒ Object
Returns the value of attribute image.
-
#jobTitle ⇒ Object
Returns the value of attribute jobTitle.
-
#lastName ⇒ Object
Returns the value of attribute lastName.
-
#maidenName ⇒ Object
Returns the value of attribute maidenName.
-
#middleName ⇒ Object
Returns the value of attribute middleName.
-
#mobilePhone ⇒ Object
Returns the value of attribute mobilePhone.
-
#name ⇒ Object
Returns the value of attribute name.
-
#namePrefix ⇒ Object
Returns the value of attribute namePrefix.
-
#nameSuffix ⇒ Object
Returns the value of attribute nameSuffix.
-
#nickname ⇒ Object
Returns the value of attribute nickname.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#otherCity ⇒ Object
Returns the value of attribute otherCity.
-
#otherCountry ⇒ Object
Returns the value of attribute otherCountry.
-
#otherFax ⇒ Object
Returns the value of attribute otherFax.
-
#otherPhone ⇒ Object
Returns the value of attribute otherPhone.
-
#otherPostalCode ⇒ Object
Returns the value of attribute otherPostalCode.
-
#otherState ⇒ Object
Returns the value of attribute otherState.
-
#otherStreet ⇒ Object
Returns the value of attribute otherStreet.
-
#otherURL ⇒ Object
Returns the value of attribute otherURL.
-
#pager ⇒ Object
Returns the value of attribute pager.
-
#shared_account_id ⇒ Object
Returns the value of attribute shared_account_id.
-
#shared_folder_account_id ⇒ Object
Returns the value of attribute shared_folder_account_id.
-
#tn ⇒ Object
Returns the value of attribute tn.
-
#type ⇒ Object
Returns the value of attribute type.
-
#workCity ⇒ Object
Returns the value of attribute workCity.
-
#workCountry ⇒ Object
Returns the value of attribute workCountry.
-
#workFax ⇒ Object
Returns the value of attribute workFax.
-
#workPhone ⇒ Object
Returns the value of attribute workPhone.
-
#workPostalCode ⇒ Object
Returns the value of attribute workPostalCode.
-
#workState ⇒ Object
Returns the value of attribute workState.
-
#workStreet ⇒ Object
Returns the value of attribute workStreet.
-
#workURL ⇒ Object
Returns the value of attribute workURL.
Attributes included from MailboxItemConcern
Attributes inherited from Base::Object
Instance Method Summary collapse
- #add_custom_property(key, value) ⇒ Object
- #build_rename(*args) ⇒ Object
- #create! ⇒ Object
- #emails ⇒ Object
- #group? ⇒ Boolean
-
#initialize(parent) ⇒ Contact
constructor
A new instance of Contact.
- #reload! ⇒ Object
- #rename!(*args) ⇒ Object
Methods included from MailboxItemConcern
Methods included from RequestMethodsMailbox
#build_create, #build_delete, #build_modify, #delete!, #modify!, #update!
Methods included from BelongsToTag
Methods included from BelongsToFolder
#folder, #folder!, #folder=, #move!, #trash!
Methods inherited from Base::Object
#clone, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Constructor Details
#initialize(parent) ⇒ Contact
Returns a new instance of Contact.
25 26 27 28 29 30 |
# File 'lib/zm/client/contact/contact.rb', line 25 def initialize(parent) @l = FolderDefault::CONTACTS.id @shared_account_id = nil @shared_folder_account_id = nil super end |
Instance Attribute Details
#anniversary ⇒ Object
Returns the value of attribute anniversary.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def anniversary @anniversary end |
#assistantPhone ⇒ Object
Returns the value of attribute assistantPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def assistantPhone @assistantPhone end |
#birthday ⇒ Object
Returns the value of attribute birthday.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def birthday @birthday end |
#callbackPhone ⇒ Object
Returns the value of attribute callbackPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def callbackPhone @callbackPhone end |
#carPhone ⇒ Object
Returns the value of attribute carPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def carPhone @carPhone end |
#company ⇒ Object
Returns the value of attribute company.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def company @company end |
#companyPhone ⇒ Object
Returns the value of attribute companyPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def companyPhone @companyPhone end |
#custom1 ⇒ Object
Returns the value of attribute custom1.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def custom1 @custom1 end |
#department ⇒ Object
Returns the value of attribute department.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def department @department end |
#email ⇒ Object
Returns the value of attribute email.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email @email end |
#email2 ⇒ Object
Returns the value of attribute email2.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email2 @email2 end |
#email3 ⇒ Object
Returns the value of attribute email3.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email3 @email3 end |
#email4 ⇒ Object
Returns the value of attribute email4.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email4 @email4 end |
#email5 ⇒ Object
Returns the value of attribute email5.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email5 @email5 end |
#email6 ⇒ Object
Returns the value of attribute email6.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email6 @email6 end |
#email7 ⇒ Object
Returns the value of attribute email7.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def email7 @email7 end |
#firstName ⇒ Object
Returns the value of attribute firstName.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def firstName @firstName end |
#fullName ⇒ Object
Returns the value of attribute fullName.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def fullName @fullName end |
#homeCity ⇒ Object
Returns the value of attribute homeCity.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeCity @homeCity end |
#homeCountry ⇒ Object
Returns the value of attribute homeCountry.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeCountry @homeCountry end |
#homeFax ⇒ Object
Returns the value of attribute homeFax.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeFax @homeFax end |
#homePhone ⇒ Object
Returns the value of attribute homePhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homePhone @homePhone end |
#homePostalCode ⇒ Object
Returns the value of attribute homePostalCode.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homePostalCode @homePostalCode end |
#homeState ⇒ Object
Returns the value of attribute homeState.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeState @homeState end |
#homeStreet ⇒ Object
Returns the value of attribute homeStreet.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeStreet @homeStreet end |
#homeURL ⇒ Object
Returns the value of attribute homeURL.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def homeURL @homeURL end |
#imAddress1 ⇒ Object
Returns the value of attribute imAddress1.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def imAddress1 @imAddress1 end |
#imAddress2 ⇒ Object
Returns the value of attribute imAddress2.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def imAddress2 @imAddress2 end |
#imAddress3 ⇒ Object
Returns the value of attribute imAddress3.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def imAddress3 @imAddress3 end |
#imAddress4 ⇒ Object
Returns the value of attribute imAddress4.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def imAddress4 @imAddress4 end |
#imAddress5 ⇒ Object
Returns the value of attribute imAddress5.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def imAddress5 @imAddress5 end |
#image ⇒ Object
Returns the value of attribute image.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def image @image end |
#jobTitle ⇒ Object
Returns the value of attribute jobTitle.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def jobTitle @jobTitle end |
#lastName ⇒ Object
Returns the value of attribute lastName.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def lastName @lastName end |
#maidenName ⇒ Object
Returns the value of attribute maidenName.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def maidenName @maidenName end |
#middleName ⇒ Object
Returns the value of attribute middleName.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def middleName @middleName end |
#mobilePhone ⇒ Object
Returns the value of attribute mobilePhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def mobilePhone @mobilePhone end |
#name ⇒ Object
Returns the value of attribute name.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def name @name end |
#namePrefix ⇒ Object
Returns the value of attribute namePrefix.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def namePrefix @namePrefix end |
#nameSuffix ⇒ Object
Returns the value of attribute nameSuffix.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def nameSuffix @nameSuffix end |
#nickname ⇒ Object
Returns the value of attribute nickname.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def nickname @nickname end |
#notes ⇒ Object
Returns the value of attribute notes.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def notes @notes end |
#otherCity ⇒ Object
Returns the value of attribute otherCity.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherCity @otherCity end |
#otherCountry ⇒ Object
Returns the value of attribute otherCountry.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherCountry @otherCountry end |
#otherFax ⇒ Object
Returns the value of attribute otherFax.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherFax @otherFax end |
#otherPhone ⇒ Object
Returns the value of attribute otherPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherPhone @otherPhone end |
#otherPostalCode ⇒ Object
Returns the value of attribute otherPostalCode.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherPostalCode @otherPostalCode end |
#otherState ⇒ Object
Returns the value of attribute otherState.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherState @otherState end |
#otherStreet ⇒ Object
Returns the value of attribute otherStreet.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherStreet @otherStreet end |
#otherURL ⇒ Object
Returns the value of attribute otherURL.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def otherURL @otherURL end |
#pager ⇒ Object
Returns the value of attribute pager.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def pager @pager end |
#shared_account_id ⇒ Object
Returns the value of attribute shared_account_id.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def shared_account_id @shared_account_id end |
#shared_folder_account_id ⇒ Object
Returns the value of attribute shared_folder_account_id.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def shared_folder_account_id @shared_folder_account_id end |
#tn ⇒ Object
Returns the value of attribute tn.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def tn @tn end |
#type ⇒ Object
Returns the value of attribute type.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def type @type end |
#workCity ⇒ Object
Returns the value of attribute workCity.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workCity @workCity end |
#workCountry ⇒ Object
Returns the value of attribute workCountry.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workCountry @workCountry end |
#workFax ⇒ Object
Returns the value of attribute workFax.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workFax @workFax end |
#workPhone ⇒ Object
Returns the value of attribute workPhone.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workPhone @workPhone end |
#workPostalCode ⇒ Object
Returns the value of attribute workPostalCode.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workPostalCode @workPostalCode end |
#workState ⇒ Object
Returns the value of attribute workState.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workState @workState end |
#workStreet ⇒ Object
Returns the value of attribute workStreet.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workStreet @workStreet end |
#workURL ⇒ Object
Returns the value of attribute workURL.
14 15 16 |
# File 'lib/zm/client/contact/contact.rb', line 14 def workURL @workURL end |
Instance Method Details
#add_custom_property(key, value) ⇒ Object
40 41 42 |
# File 'lib/zm/client/contact/contact.rb', line 40 def add_custom_property(key, value) instance_variable_set(Utils.arrow_name(key), value) end |
#build_rename(*args) ⇒ Object
55 56 57 |
# File 'lib/zm/client/contact/contact.rb', line 55 def build_rename(*args) raise NotImplementedError end |
#create! ⇒ Object
44 45 46 47 48 49 |
# File 'lib/zm/client/contact/contact.rb', line 44 def create! rep = @parent.soap_connector.invoke(build_create) ContactJsnsInitializer.update(self, rep[:CreateContactResponse][:cn].first) id end |
#emails ⇒ Object
36 37 38 |
# File 'lib/zm/client/contact/contact.rb', line 36 def emails [email, email2, email3, email4, email5, email6, email7].compact end |
#group? ⇒ Boolean
32 33 34 |
# File 'lib/zm/client/contact/contact.rb', line 32 def group? @type == GROUP_PATTERN end |
#reload! ⇒ Object
59 60 61 |
# File 'lib/zm/client/contact/contact.rb', line 59 def reload! raise NotImplementedError end |
#rename!(*args) ⇒ Object
51 52 53 |
# File 'lib/zm/client/contact/contact.rb', line 51 def rename!(*args) raise NotImplementedError end |