Class: VMware::Folder
- Inherits:
-
ManagedEntity
- Object
- ManagedEntity
- VMware::Folder
- Defined in:
- lib/vmware/objects/folder.rb
Instance Attribute Summary
Attributes inherited from ManagedEntity
Instance Method Summary collapse
-
#children ⇒ Object
Return the contents of the folder.
Methods inherited from ManagedEntity
Constructor Details
This class inherits a constructor from VMware::ManagedEntity
Instance Method Details
#children ⇒ Object
Return the contents of the folder.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/vmware/objects/folder.rb', line 6 def children result = [] childEntities = self["childEntity"] return [] if childEntities.nil? childEntities.each do |child_entity| result << @session.managed_object_wrapper_factory(child_entity.xmlattr_type, child_entity) end result end |