Class: Zm::Client::AccountDlsOwnerCollection
- Inherits:
-
Base::ObjectsCollection
- Object
- Base::ObjectsCollection
- Zm::Client::AccountDlsOwnerCollection
- Defined in:
- lib/zm/client/account/account_dls_owner_collection.rb
Overview
Collection Account dls membership
Constant Summary
Constants inherited from Base::ObjectsCollection
Base::ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
- #build_query ⇒ Object
-
#initialize(parent) ⇒ AccountDlsOwnerCollection
constructor
A new instance of AccountDlsOwnerCollection.
- #make_query ⇒ Object
Methods inherited from Base::ObjectsCollection
#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) ⇒ AccountDlsOwnerCollection
Returns a new instance of AccountDlsOwnerCollection.
7 8 9 |
# File 'lib/zm/client/account/account_dls_owner_collection.rb', line 7 def initialize(parent) @parent = parent end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Zm::Client::Base::ObjectsCollection
Instance Method Details
#build_query ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/zm/client/account/account_dls_owner_collection.rb', line 15 def build_query jsns = { query: "(zimbraACE=#{@parent.id} usr ownDistList)", types: SearchType::DL } SoapElement.admin(SoapAdminConstants::SEARCH_DIRECTORY_REQUEST) .add_attributes(jsns) end |
#make_query ⇒ Object
11 12 13 |
# File 'lib/zm/client/account/account_dls_owner_collection.rb', line 11 def make_query @parent.sac.invoke(build_query) end |