Class: Zm::Client::FolderGrantsCollection
- Inherits:
-
Object
- Object
- Zm::Client::FolderGrantsCollection
- Defined in:
- lib/zm/client/folder/folder_grants_collection.rb
Overview
class for folder retention policies collection
Instance Attribute Summary collapse
-
#all ⇒ Object
readonly
Returns the value of attribute all.
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
Instance Method Summary collapse
- #add(fg) ⇒ Object
- #create(zid, gt, perm, d) ⇒ Object
-
#initialize(parent) ⇒ FolderGrantsCollection
constructor
A new instance of FolderGrantsCollection.
- #new(zid, gt, perm, d) ⇒ Object
- #soap_account_connector ⇒ Object (also: #sacc)
Constructor Details
#initialize(parent) ⇒ FolderGrantsCollection
Returns a new instance of FolderGrantsCollection.
10 11 12 13 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 10 def initialize(parent) @parent = parent @all = [] end |
Instance Attribute Details
#all ⇒ Object (readonly)
Returns the value of attribute all.
8 9 10 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 8 def all @all end |
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
8 9 10 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 8 def parent @parent end |
Instance Method Details
#add(fg) ⇒ Object
24 25 26 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 24 def add(fg) @all << fg end |
#create(zid, gt, perm, d) ⇒ Object
19 20 21 22 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 19 def create(zid, gt, perm, d) fg = new(zid, gt, perm, d) add(fg) end |
#new(zid, gt, perm, d) ⇒ Object
15 16 17 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 15 def new(zid, gt, perm, d) FolderGrant.new(self, zid, gt, perm, d) end |
#soap_account_connector ⇒ Object Also known as: sacc
28 29 30 |
# File 'lib/zm/client/folder/folder_grants_collection.rb', line 28 def soap_account_connector @parent.soap_account_connector end |