Class: Zm::Client::MountPointsCollection
- Inherits:
-
Base::AccountObjectsCollection
- Object
- Base::ObjectsCollection
- Base::AccountObjectsCollection
- Zm::Client::MountPointsCollection
- 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
-
#depth ⇒ Object
Returns the value of attribute depth.
-
#needGranteeName ⇒ Object
Returns the value of attribute needGranteeName.
-
#root ⇒ Object
readonly
Returns the value of attribute root.
-
#tr ⇒ Object
Returns the value of attribute tr.
-
#view ⇒ Object
Returns the value of attribute view.
-
#visible ⇒ Object
Returns the value of attribute visible.
Attributes inherited from Base::ObjectsCollection
Instance Method Summary collapse
- #build_query ⇒ Object
- #clear ⇒ Object
-
#initialize(parent) ⇒ MountPointsCollection
constructor
A new instance of MountPointsCollection.
- #jsns_builder ⇒ Object
- #make_query ⇒ Object
- #where(view: nil, tr: nil) ⇒ 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) ⇒ MountPointsCollection
Returns a new instance of MountPointsCollection.
11 12 13 14 15 16 17 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 11 def initialize(parent) @child_class = MountPoint @builder_class = MountPointsBuilder super @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
#depth ⇒ Object
Returns the value of attribute depth.
9 10 11 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 9 def depth @depth end |
#needGranteeName ⇒ Object
Returns the value of attribute needGranteeName.
9 10 11 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 9 def needGranteeName @needGranteeName end |
#root ⇒ Object (readonly)
Returns the value of attribute root.
7 8 9 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 7 def root @root end |
#tr ⇒ Object
Returns the value of attribute tr.
9 10 11 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 9 def tr @tr end |
#view ⇒ Object
Returns the value of attribute view.
9 10 11 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 9 def view @view end |
#visible ⇒ Object
Returns the value of attribute visible.
9 10 11 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 9 def visible @visible end |
Instance Method Details
#build_query ⇒ Object
40 41 42 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 40 def build_query jsns_builder.to_jsns end |
#clear ⇒ Object
25 26 27 28 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 25 def clear @root = nil reset_query_params end |
#jsns_builder ⇒ Object
30 31 32 33 34 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 30 def jsns_builder return @jsns_builder if defined? @jsns_builder @jsns_builder = FoldersJsnsBuilder.new(self) end |
#make_query ⇒ Object
36 37 38 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 36 def make_query @parent.soap_connector.invoke(build_query) end |
#where(view: nil, tr: nil) ⇒ Object
19 20 21 22 23 |
# File 'lib/zm/client/mountpoint/mountpoints_collection.rb', line 19 def where(view: nil, tr: nil) @view = view @tr = tr self end |