Class: Zm::Client::FolderGrantsCollection
Overview
class for folder retention policies collection
Instance Attribute Summary collapse
#all
Instance Method Summary
collapse
#method_missing
Constructor Details
Returns a new instance of FolderGrantsCollection.
11
12
13
14
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 11
def initialize(parent)
@parent = parent
@all = []
end
|
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
9
10
11
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 9
def parent
@parent
end
|
Instance Method Details
#add(fg) ⇒ Object
54
55
56
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 54
def add(fg)
@all << fg
end
|
#create(zid, gt, perm, d) ⇒ Object
42
43
44
45
46
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 42
def create(zid, gt, perm, d)
fg = new(zid, gt, perm, d)
add(fg)
fg
end
|
#create_from_object(item, perm) ⇒ Object
48
49
50
51
52
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 48
def create_from_object(item, perm)
fg = new_from_object(item, perm)
add(fg)
fg
end
|
#new(zid, gt, perm, d) ⇒ Object
38
39
40
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 38
def new(zid, gt, perm, d)
FolderGrant.new(self, zid, gt, perm, d)
end
|
#new_from_object(item, perm) ⇒ Object
#soap_account_connector ⇒ Object
Also known as:
sacc
58
59
60
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 58
def soap_account_connector
@parent.parent.soap_account_connector
end
|
#to_s ⇒ Object
64
65
66
|
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 64
def to_s
@all.map(&:to_s)
end
|