Class: Zm::Client::AcesCollection
- Inherits:
-
Base::AccountObjectsCollection
- Object
- Base::ObjectsCollection
- Base::AccountObjectsCollection
- 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 collapse
-
#rights ⇒ Object
readonly
Returns the value of attribute rights.
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
-
#initialize(parent) ⇒ AcesCollection
constructor
A new instance of AcesCollection.
- #new {|ace| ... } ⇒ Object
- #soap_account_connector ⇒ Object (also: #sacc)
- #where(*rights) ⇒ Object
Methods inherited from Base::ObjectsCollection
#all, #all!, #build_from_entry, #find, #first, #logger, #method_missing, #order, #page, #per_page, #respond_to_missing?
Constructor Details
#initialize(parent) ⇒ AcesCollection
Returns a new instance of AcesCollection.
9 10 11 12 13 14 |
# File 'lib/zm/client/ace/aces_collection.rb', line 9 def initialize(parent) super(parent) @builder_class = AcesBuilder @jsns_builder = AceJsnsBuilder.new(self) 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 Attribute Details
#rights ⇒ Object (readonly)
Returns the value of attribute rights.
7 8 9 |
# File 'lib/zm/client/ace/aces_collection.rb', line 7 def rights @rights end |
Instance Method Details
#new {|ace| ... } ⇒ Object
16 17 18 19 20 |
# File 'lib/zm/client/ace/aces_collection.rb', line 16 def new ace = Ace.new(self) yield(ace) if block_given? ace end |
#soap_account_connector ⇒ Object Also known as: sacc
28 29 30 |
# File 'lib/zm/client/ace/aces_collection.rb', line 28 def soap_account_connector @parent.soap_account_connector end |
#where(*rights) ⇒ Object
22 23 24 25 26 |
# File 'lib/zm/client/ace/aces_collection.rb', line 22 def where(*rights) @rights += rights @rights.uniq! self end |