Class: Zm::Client::Base::AdminObjectsCollection
- Inherits:
-
ObjectsCollection
- Object
- ObjectsCollection
- Zm::Client::Base::AdminObjectsCollection
- Defined in:
- lib/zm/client/base/admin_objects_collection.rb
Overview
Collection AdminObjectsCollection
Direct Known Subclasses
AccountsCollection, CosesCollection, DistributionListsCollection, DomainsCollection, ResourcesCollection, ServersCollection
Constant Summary
Constants inherited from ObjectsCollection
ObjectsCollection::METHODS_MISSING_LIST
Instance Attribute Summary
Attributes inherited from ObjectsCollection
Instance Method Summary collapse
- #attrs(*attrs) ⇒ Object
- #count ⇒ Object
-
#initialize(parent) ⇒ AdminObjectsCollection
constructor
A new instance of AdminObjectsCollection.
- #ldap ⇒ Object
- #where(ldap_query) ⇒ Object
Methods inherited from ObjectsCollection
#all, #all!, #build_from_entry, #find, #first, #logger, #method_missing, #new, #order, #page, #per_page, #respond_to_missing?
Constructor Details
#initialize(parent) ⇒ AdminObjectsCollection
Returns a new instance of AdminObjectsCollection.
8 9 10 11 |
# File 'lib/zm/client/base/admin_objects_collection.rb', line 8 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
#attrs(*attrs) ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/zm/client/base/admin_objects_collection.rb', line 25 def attrs(*attrs) return self if @attrs == attrs @all = nil @attrs = attrs self end |
#count ⇒ Object
33 34 35 36 |
# File 'lib/zm/client/base/admin_objects_collection.rb', line 33 def count @count_only = SoapUtils::ON make_query[:Body][:SearchDirectoryResponse][:num] end |
#ldap ⇒ Object
13 14 15 16 |
# File 'lib/zm/client/base/admin_objects_collection.rb', line 13 def ldap @apply_cos = 0 self end |
#where(ldap_query) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/zm/client/base/admin_objects_collection.rb', line 18 def where(ldap_query) @all = nil ldap_filter.add(ldap_query) self end |