Class: Zm::Client::Cos
Overview
Instance Attribute Summary
Attributes inherited from Base::Object
#grantee_type, #id, #name, #parent, #token
Instance Method Summary
collapse
#soap_account_connector, #soap_admin_connector
#arrow_name, #clone, #concat, #convert_json_string_value, #instance_variables_array, #instance_variables_hash, #recorded?, #save!, #to_s
Constructor Details
#initialize(parent) ⇒ Cos
Returns a new instance of Cos.
8
9
10
11
|
# File 'lib/zm/client/cos/cos.rb', line 8
def initialize(parent)
extend(CosCommon)
super(parent)
end
|
Instance Method Details
#all_instance_variable_keys ⇒ Object
25
26
27
|
# File 'lib/zm/client/cos/cos.rb', line 25
def all_instance_variable_keys
attrs_write
end
|
#create! ⇒ Object
41
42
43
|
# File 'lib/zm/client/cos/cos.rb', line 41
def create!
sac.create_cos(name, instance_variables_array(attrs_write))
end
|
#duplicate(attrs = {}) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/zm/client/cos/cos.rb', line 29
def duplicate(attrs = {})
end
|
#init_from_json(json) ⇒ Object
13
14
15
16
17
|
# File 'lib/zm/client/cos/cos.rb', line 13
def init_from_json(json)
super(json)
@zimbraMailHostPool = [@zimbraMailHostPool] if @zimbraMailHostPool.is_a?(String)
@zimbraZimletAvailableZimlets = [@zimbraZimletAvailableZimlets] if @zimbraZimletAvailableZimlets.is_a?(String)
end
|
#modify! ⇒ Object
37
38
39
|
# File 'lib/zm/client/cos/cos.rb', line 37
def modify!
end
|
#servers ⇒ Object
45
46
47
|
# File 'lib/zm/client/cos/cos.rb', line 45
def servers
@servers ||= read_servers
end
|
#to_h ⇒ Object
19
20
21
22
23
|
# File 'lib/zm/client/cos/cos.rb', line 19
def to_h
hashmap = Hash[all_instance_variable_keys.map { |key| [key, instance_variable_get(arrow_name(key))] }]
hashmap.delete_if { |_, v| v.nil? }
hashmap
end
|