Sha256: f826c9a2f5df5a9114b1daff7ac1f301abd8201add746b34632ae102618f40e5
Contents?: true
Size: 497 Bytes
Versions: 28
Compression:
Stored size: 497 Bytes
Contents
# Copyright (c) 2011-2017 VMware, Inc. All Rights Reserved. # SPDX-License-Identifier: MIT class RbVmomi::VIM::ObjectContent # Represent this ObjectContent as a hash. # @return [Hash] A hash from property paths to values. def to_hash @cached_hash ||= to_hash_uncached end # Alias for +to_hash[k]+. def [](k) to_hash[k] end private def to_hash_uncached h = {} propSet.each do |x| fail if h.member? x.name h[x.name] = x.val end h end end
Version data entries
28 entries across 26 versions & 3 rubygems