Class: Zm::Client::Identity
- Inherits:
-
Base::Object
- Object
- Base::Object
- Zm::Client::Identity
- Includes:
- RequestMethodsMailbox
- Defined in:
- lib/zm/client/identity/identity.rb
Overview
class account identity
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#zimbraPrefDefaultSignatureId ⇒ Object
Returns the value of attribute zimbraPrefDefaultSignatureId.
-
#zimbraPrefForwardReplySignatureId ⇒ Object
Returns the value of attribute zimbraPrefForwardReplySignatureId.
-
#zimbraPrefFromAddress ⇒ Object
Returns the value of attribute zimbraPrefFromAddress.
-
#zimbraPrefFromAddressType ⇒ Object
Returns the value of attribute zimbraPrefFromAddressType.
-
#zimbraPrefFromDisplay ⇒ Object
Returns the value of attribute zimbraPrefFromDisplay.
-
#zimbraPrefIdentityName ⇒ Object
Returns the value of attribute zimbraPrefIdentityName.
-
#zimbraPrefReplyToAddress ⇒ Object
Returns the value of attribute zimbraPrefReplyToAddress.
-
#zimbraPrefReplyToDisplay ⇒ Object
Returns the value of attribute zimbraPrefReplyToDisplay.
-
#zimbraPrefReplyToEnabled ⇒ Object
Returns the value of attribute zimbraPrefReplyToEnabled.
-
#zimbraPrefWhenInFoldersEnabled ⇒ Object
Returns the value of attribute zimbraPrefWhenInFoldersEnabled.
-
#zimbraPrefWhenSentToAddresses ⇒ Object
Returns the value of attribute zimbraPrefWhenSentToAddresses.
-
#zimbraPrefWhenSentToEnabled ⇒ Object
Returns the value of attribute zimbraPrefWhenSentToEnabled.
Attributes inherited from Base::Object
Instance Method Summary collapse
- #build_rename(*args) ⇒ Object
- #clone {|new_identity| ... } ⇒ Object
- #create! ⇒ Object
- #rename!(*args) ⇒ Object
Methods included from RequestMethodsMailbox
#build_create, #build_delete, #build_modify, #delete!, #modify!, #update!
Methods inherited from Base::Object
#initialize, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Constructor Details
This class inherits a constructor from Zm::Client::Base::Object
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def name @name end |
#zimbraPrefDefaultSignatureId ⇒ Object
Returns the value of attribute zimbraPrefDefaultSignatureId.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefDefaultSignatureId @zimbraPrefDefaultSignatureId end |
#zimbraPrefForwardReplySignatureId ⇒ Object
Returns the value of attribute zimbraPrefForwardReplySignatureId.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefForwardReplySignatureId @zimbraPrefForwardReplySignatureId end |
#zimbraPrefFromAddress ⇒ Object
Returns the value of attribute zimbraPrefFromAddress.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefFromAddress @zimbraPrefFromAddress end |
#zimbraPrefFromAddressType ⇒ Object
Returns the value of attribute zimbraPrefFromAddressType.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefFromAddressType @zimbraPrefFromAddressType end |
#zimbraPrefFromDisplay ⇒ Object
Returns the value of attribute zimbraPrefFromDisplay.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefFromDisplay @zimbraPrefFromDisplay end |
#zimbraPrefIdentityName ⇒ Object
Returns the value of attribute zimbraPrefIdentityName.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefIdentityName @zimbraPrefIdentityName end |
#zimbraPrefReplyToAddress ⇒ Object
Returns the value of attribute zimbraPrefReplyToAddress.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefReplyToAddress @zimbraPrefReplyToAddress end |
#zimbraPrefReplyToDisplay ⇒ Object
Returns the value of attribute zimbraPrefReplyToDisplay.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefReplyToDisplay @zimbraPrefReplyToDisplay end |
#zimbraPrefReplyToEnabled ⇒ Object
Returns the value of attribute zimbraPrefReplyToEnabled.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefReplyToEnabled @zimbraPrefReplyToEnabled end |
#zimbraPrefWhenInFoldersEnabled ⇒ Object
Returns the value of attribute zimbraPrefWhenInFoldersEnabled.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefWhenInFoldersEnabled @zimbraPrefWhenInFoldersEnabled end |
#zimbraPrefWhenSentToAddresses ⇒ Object
Returns the value of attribute zimbraPrefWhenSentToAddresses.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefWhenSentToAddresses @zimbraPrefWhenSentToAddresses end |
#zimbraPrefWhenSentToEnabled ⇒ Object
Returns the value of attribute zimbraPrefWhenSentToEnabled.
9 10 11 |
# File 'lib/zm/client/identity/identity.rb', line 9 def zimbraPrefWhenSentToEnabled @zimbraPrefWhenSentToEnabled end |
Instance Method Details
#build_rename(*args) ⇒ Object
24 25 26 |
# File 'lib/zm/client/identity/identity.rb', line 24 def build_rename(*args) raise NotImplementedError end |
#clone {|new_identity| ... } ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/zm/client/identity/identity.rb', line 28 def clone new_identity = super do |obj| i[@zimbraPrefDefaultSignatureId @zimbraPrefForwardReplySignatureId].each do |arrow_key| obj.remove_instance_variable(arrow_key) if obj.instance_variable_get(arrow_key) end end yield(new_identity) if block_given? new_identity end |
#create! ⇒ Object
14 15 16 17 18 |
# File 'lib/zm/client/identity/identity.rb', line 14 def create! rep = @parent.soap_connector.invoke(build_create) IdentityJsnsInitializer.update(self, rep[:CreateIdentityResponse][:identity].first) @id end |
#rename!(*args) ⇒ Object
20 21 22 |
# File 'lib/zm/client/identity/identity.rb', line 20 def rename!(*args) raise NotImplementedError end |