Class: Zm::Client::SearchFoldersCollection

Inherits:
Base::ObjectsCollection show all
Defined in:
lib/zm/client/search_folder/search_folders_collection.rb

Overview

collection of folders

Constant Summary collapse

METHODS_MISSING_LIST =
i[select each map length].to_set.freeze

Instance Attribute Summary

Attributes inherited from Base::ObjectsCollection

#parent

Instance Method Summary collapse

Methods inherited from Base::ObjectsCollection

#all, #all!, #attrs, #build_from_entry, #count, #find, #first, #method_missing, #order, #page, #per_page, #respond_to_missing?, #where

Constructor Details

#initialize(parent) ⇒ SearchFoldersCollection

Returns a new instance of SearchFoldersCollection.



9
10
11
# File 'lib/zm/client/search_folder/search_folders_collection.rb', line 9

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

#new {|folder| ... } ⇒ Object

Yields:

  • (folder)


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

def new
  folder = SearchFolder.new(@parent)
  yield(folder) if block_given?
  folder
end