Class: Zm::Client::CosDomainsCollection

Inherits:
DomainsCollection show all
Defined in:
lib/zm/client/cos/cos_domains_collection.rb

Overview

Collection Domains for cos

Constant Summary

Constants inherited from Base::ObjectsCollection

Base::ObjectsCollection::METHODS_MISSING_LIST

Instance Attribute Summary

Attributes inherited from Base::ObjectsCollection

#parent

Instance Method Summary collapse

Methods inherited from DomainsCollection

#find_by!

Methods inherited from Base::AdminObjectsCollection

#attrs, #clear, #count, #find_by, #find_by_or_nil, #find_each, #ldap, #where

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) ⇒ CosDomainsCollection

Returns a new instance of CosDomainsCollection.



7
8
9
10
11
# File 'lib/zm/client/cos/cos_domains_collection.rb', line 7

def initialize(parent)
  super(parent)

  @default_ldap_filter = "(zimbraDomainDefaultCOSId=#{@parent.id})"
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_responseObject



13
14
15
16
17
# File 'lib/zm/client/cos/cos_domains_collection.rb', line 13

def build_response
  ldap_filter.add(@default_ldap_filter)

  super
end