lib/rbvmomi/vim/ManagedObject.rb
# Efficiently retrieve multiple properties from an object.
# @param pathSet [Array] Properties to return.
# @return [Hash] Hash from property paths to values.
Efficiently retrieve multiple properties from an object.
Efficiently retrieve multiple properties from an object .
def collect! *pathSet
    spec = {
      :objectSet => [{ :obj => self }],
      :propSet => [{
        :pathSet => pathSet,
        :type => self.class.wsdl_name
      }]
    }
    @soap.propertyCollector.RetrieveProperties(:specSet => [spec])[0].to_hash
  end
def collect! * pathSet spec = { :objectSet => [ { :obj => self } ] , :propSet => [ { :pathSet => pathSet , :type => self . class . wsdl_name } ] } @soap . propertyCollector . RetrieveProperties ( :specSet => [ spec ] ) [ 0 ] . to_hash end
Efficiently retrieve multiple properties from an object.
Efficiently retrieve multiple properties from an object .
Hash from property paths to values.
Hash from property paths to values .
Hash
pathSet
Properties to return.
Properties to return .