Sha256: fff211e2b51224ff6b2ef631941c5e19e2034dd4703b6ea5aa06958df3ed9cc6
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::ObjectUpdate # Represent this ObjectUpdate 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 = {} changeSet.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