Sha256: dbe991bc43a30d2048c6b66219f68eb4a322b364c799547c37699559b6365096
Contents?: true
Size: 568 Bytes
Versions: 19
Compression:
Stored size: 568 Bytes
Contents
class RbVmomi::VIM::PropertyCollector def collectMultiple objs, *pathSet return {} if objs.empty? klasses = objs.map{|x| x.class}.uniq klass = if klasses.length > 1 # common superclass klasses.map(&:ancestors).inject(&:&)[0] else klasses.first end spec = { :objectSet => objs.map{|x| { :obj => x }}, :propSet => [{ :pathSet => pathSet, :type => klass.wsdl_name }] } res = RetrieveProperties(:specSet => [spec]) Hash[res.map do |x| [x.obj, x.to_hash] end] end end
Version data entries
19 entries across 19 versions & 4 rubygems