Class: Zm::Client::AcesCollection
- Inherits:
-
Base::ObjectsCollection
- Object
- Base::ObjectsCollection
- Zm::Client::AcesCollection
- Defined in:
- lib/zm/client/ace/aces_collection.rb
Overview
collection account aces
Constant Summary
Constants inherited from Base::ObjectsCollection
Base::ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
-
#initialize(parent) ⇒ AcesCollection
constructor
A new instance of AcesCollection.
- #new {|ace| ... } ⇒ Object
- #rights(*rights) ⇒ Object
Methods inherited from Base::ObjectsCollection
#all, #all!, #attrs, #build_from_entry, #count, #find, #first, #method_missing, #order, #page, #per_page, #respond_to_missing?, #where
Constructor Details
#initialize(parent) ⇒ AcesCollection
Returns a new instance of AcesCollection.
7 8 9 10 |
# File 'lib/zm/client/ace/aces_collection.rb', line 7 def initialize(parent) @parent = parent reset_query_params end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zm::Client::Base::ObjectsCollection
Instance Method Details
#new {|ace| ... } ⇒ Object
12 13 14 15 16 |
# File 'lib/zm/client/ace/aces_collection.rb', line 12 def new ace = Ace.new(@parent) yield(ace) if block_given? ace end |
#rights(*rights) ⇒ Object
18 19 20 21 |
# File 'lib/zm/client/ace/aces_collection.rb', line 18 def rights(*rights) @rights = rights self end |