Class: Zm::Client::AcesCollection

Inherits:
Base::AccountObjectsCollection show all
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

Attributes inherited from Base::ObjectsCollection

#parent

Instance Method Summary collapse

Methods inherited from Base::ObjectsCollection

#all, #all!, #find, #first, #logger, #method_missing, #new, #order, #page, #per_page, #respond_to_missing?

Methods included from Inspector

#inspect, #instance_variables_map, #to_h, #to_s

Constructor Details

#initialize(parent) ⇒ AcesCollection

Returns a new instance of AcesCollection.



9
10
11
12
13
14
15
# File 'lib/zm/client/ace/aces_collection.rb', line 9

def initialize(parent)
  super(parent)
  @child_class = Ace
  @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

#rightsObject (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

#where(*rights) ⇒ Object



17
18
19
20
21
# File 'lib/zm/client/ace/aces_collection.rb', line 17

def where(*rights)
  @rights += rights
  @rights.uniq!
  self
end