Class: Zm::Client::MountPointsCollection

Inherits:
Base::AccountObjectsCollection show all
Defined in:
lib/zm/client/mountpoint/mountpoints_collection.rb

Overview

collection of mountpoints

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!, #build_from_entry, #find, #first, #logger, #method_missing, #new, #order, #page, #per_page, #respond_to_missing?

Constructor Details

#initialize(parent) ⇒ MountPointsCollection

Returns a new instance of MountPointsCollection.



12
13
14
15
16
17
18
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 12

def initialize(parent)
  @child_class = MountPoint
  @builder_class = MountPointsBuilder
  super(parent)
  @root = nil
  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

#depthObject

Returns the value of attribute depth.



10
11
12
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 10

def depth
  @depth
end

#needGranteeNameObject

Returns the value of attribute needGranteeName.



10
11
12
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 10

def needGranteeName
  @needGranteeName
end

#rootObject (readonly)

Returns the value of attribute root.



8
9
10
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 8

def root
  @root
end

#trObject

Returns the value of attribute tr.



10
11
12
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 10

def tr
  @tr
end

#viewObject

Returns the value of attribute view.



10
11
12
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 10

def view
  @view
end

#visibleObject

Returns the value of attribute visible.



10
11
12
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 10

def visible
  @visible
end

Instance Method Details

#clearObject



27
28
29
30
31
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 27

def clear
  @all = nil
  @root = nil
  reset_query_params
end

#where(view: nil, tr: nil) ⇒ Object



20
21
22
23
24
25
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 20

def where(view: nil, tr: nil)
  @view = view
  @tr = tr
  @all = nil
  self
end