Class: Zm::Client::Base::ZimbraAttribute
- Inherits:
-
Object
- Object
- Zm::Client::Base::ZimbraAttribute
- Defined in:
- lib/zm/client/base/zimbra_attribute.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
readonly
Returns the value of attribute callback.
-
#cardinality ⇒ Object
readonly
Returns the value of attribute cardinality.
-
#flags ⇒ Object
readonly
Returns the value of attribute flags.
-
#immutable ⇒ Object
readonly
Returns the value of attribute immutable.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#optionalIn ⇒ Object
readonly
Returns the value of attribute optionalIn.
-
#requiredIn ⇒ Object
readonly
Returns the value of attribute requiredIn.
-
#since ⇒ Object
readonly
Returns the value of attribute since.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #immutable? ⇒ Boolean
-
#initialize(name: nil, optionalIn: nil, flags: nil, requiredIn: nil, cardinality: nil, callback: nil, immutable: nil, type: nil, value: nil, max: nil, min: nil, since: nil) ⇒ ZimbraAttribute
constructor
A new instance of ZimbraAttribute.
- #is_account_scoped? ⇒ Boolean
- #is_aclTarget_scoped? ⇒ Boolean
- #is_alias_scoped? ⇒ Boolean
- #is_alwaysOnCluster_scoped? ⇒ Boolean
- #is_calendarResource_scoped? ⇒ Boolean
- #is_cos_scoped? ⇒ Boolean
- #is_dataSource_scoped? ⇒ Boolean
- #is_distributionList_scoped? ⇒ Boolean
- #is_domain_scoped? ⇒ Boolean
- #is_globalConfig_scoped? ⇒ Boolean
- #is_group_scoped? ⇒ Boolean
- #is_groupDynamicUnit_scoped? ⇒ Boolean
- #is_groupStaticUnit_scoped? ⇒ Boolean
- #is_identity_scoped? ⇒ Boolean
- #is_mailRecipient_scoped? ⇒ Boolean
- #is_mimeEntry_scoped? ⇒ Boolean
- #is_objectEntry_scoped? ⇒ Boolean
- #is_server_scoped? ⇒ Boolean
- #is_signature_scoped? ⇒ Boolean
- #is_ucService_scoped? ⇒ Boolean
- #is_xmppComponent_scoped? ⇒ Boolean
- #is_zimletEntry_scoped? ⇒ Boolean
- #objects_scope ⇒ Object
Constructor Details
#initialize(name: nil, optionalIn: nil, flags: nil, requiredIn: nil, cardinality: nil, callback: nil, immutable: nil, type: nil, value: nil, max: nil, min: nil, since: nil) ⇒ ZimbraAttribute
Returns a new instance of ZimbraAttribute.
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 10 def initialize(name: nil, optionalIn: nil, flags: nil, requiredIn: nil, cardinality: nil, callback: nil, immutable: nil, type: nil, value: nil, max: nil, min: nil, since: nil) @name = name @optionalIn = optionalIn.to_s.split(',') @flags = flags @requiredIn = requiredIn.to_s.split(',') @cardinality = cardinality @callback = callback @immutable = immutable @type = type @value = value @max = max @min = min @since = since end |
Instance Attribute Details
#callback ⇒ Object (readonly)
Returns the value of attribute callback.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def callback @callback end |
#cardinality ⇒ Object (readonly)
Returns the value of attribute cardinality.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def cardinality @cardinality end |
#flags ⇒ Object (readonly)
Returns the value of attribute flags.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def flags @flags end |
#immutable ⇒ Object (readonly)
Returns the value of attribute immutable.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def immutable @immutable end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def min @min end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def name @name end |
#optionalIn ⇒ Object (readonly)
Returns the value of attribute optionalIn.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def optionalIn @optionalIn end |
#requiredIn ⇒ Object (readonly)
Returns the value of attribute requiredIn.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def requiredIn @requiredIn end |
#since ⇒ Object (readonly)
Returns the value of attribute since.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def since @since end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
7 8 9 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 7 def value @value end |
Instance Method Details
#immutable? ⇒ Boolean
26 27 28 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 26 def immutable? immutable == '1' end |
#is_account_scoped? ⇒ Boolean
34 35 36 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 34 def is_account_scoped? @is_account_scoped ||= objects_scope.include?('account') end |
#is_aclTarget_scoped? ⇒ Boolean
38 39 40 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 38 def is_aclTarget_scoped? @is_aclTarget_scoped ||= objects_scope.include?('aclTarget') end |
#is_alias_scoped? ⇒ Boolean
42 43 44 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 42 def is_alias_scoped? @is_alias_scoped ||= objects_scope.include?('alias') end |
#is_alwaysOnCluster_scoped? ⇒ Boolean
46 47 48 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 46 def is_alwaysOnCluster_scoped? @is_alwaysOnCluster_scoped ||= objects_scope.include?('alwaysOnCluster') end |
#is_calendarResource_scoped? ⇒ Boolean
50 51 52 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 50 def is_calendarResource_scoped? @is_calendarResource_scoped ||= objects_scope.include?('calendarResource') || objects_scope.include?('account') end |
#is_cos_scoped? ⇒ Boolean
54 55 56 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 54 def is_cos_scoped? @is_cos_scoped ||= objects_scope.include?('cos') end |
#is_dataSource_scoped? ⇒ Boolean
58 59 60 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 58 def is_dataSource_scoped? @is_dataSource_scoped ||= objects_scope.include?('dataSource') end |
#is_distributionList_scoped? ⇒ Boolean
62 63 64 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 62 def is_distributionList_scoped? @is_distributionList_scoped ||= objects_scope.include?('distributionList') end |
#is_domain_scoped? ⇒ Boolean
66 67 68 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 66 def is_domain_scoped? @is_domain_scoped ||= objects_scope.include?('domain') end |
#is_globalConfig_scoped? ⇒ Boolean
70 71 72 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 70 def is_globalConfig_scoped? @is_globalConfig_scoped ||= objects_scope.include?('globalConfig') end |
#is_group_scoped? ⇒ Boolean
74 75 76 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 74 def is_group_scoped? @is_group_scoped ||= objects_scope.include?('group') end |
#is_groupDynamicUnit_scoped? ⇒ Boolean
78 79 80 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 78 def is_groupDynamicUnit_scoped? @is_groupDynamicUnit_scoped ||= objects_scope.include?('groupDynamicUnit') end |
#is_groupStaticUnit_scoped? ⇒ Boolean
82 83 84 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 82 def is_groupStaticUnit_scoped? @is_groupStaticUnit_scoped ||= objects_scope.include?('groupStaticUnit') end |
#is_identity_scoped? ⇒ Boolean
86 87 88 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 86 def is_identity_scoped? @is_identity_scoped ||= objects_scope.include?('identity') end |
#is_mailRecipient_scoped? ⇒ Boolean
90 91 92 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 90 def is_mailRecipient_scoped? @is_mailRecipient_scoped ||= objects_scope.include?('mailRecipient') end |
#is_mimeEntry_scoped? ⇒ Boolean
94 95 96 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 94 def is_mimeEntry_scoped? @is_mimeEntry_scoped ||= objects_scope.include?('mimeEntry') end |
#is_objectEntry_scoped? ⇒ Boolean
98 99 100 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 98 def is_objectEntry_scoped? @is_objectEntry_scoped ||= objects_scope.include?('objectEntry') end |
#is_server_scoped? ⇒ Boolean
102 103 104 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 102 def is_server_scoped? @is_server_scoped ||= objects_scope.include?('server') end |
#is_signature_scoped? ⇒ Boolean
106 107 108 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 106 def is_signature_scoped? @is_signature_scoped ||= objects_scope.include?('signature') end |
#is_ucService_scoped? ⇒ Boolean
110 111 112 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 110 def is_ucService_scoped? @is_ucService_scoped ||= objects_scope.include?('ucService') end |
#is_xmppComponent_scoped? ⇒ Boolean
114 115 116 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 114 def is_xmppComponent_scoped? @is_xmppComponent_scoped ||= objects_scope.include?('xmppComponent') end |
#is_zimletEntry_scoped? ⇒ Boolean
118 119 120 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 118 def is_zimletEntry_scoped? @is_zimletEntry_scoped ||= objects_scope.include?('zimletEntry') end |
#objects_scope ⇒ Object
30 31 32 |
# File 'lib/zm/client/base/zimbra_attribute.rb', line 30 def objects_scope @objects_scope ||= (optionalIn + requiredIn).freeze end |