class RbVmomi::VIM::ObjectContent
Copyright © 2011-2017 VMware, Inc. All Rights Reserved. SPDX-License-Identifier: MIT
Public Instance Methods
[](k)
click to toggle source
Alias for to_hash[k]
.
# File lib/rbvmomi/vim/ObjectContent.rb, line 12 def [](k) to_hash[k] end
to_hash()
click to toggle source
Represent this ObjectContent
as a hash. @return [Hash] A hash from property paths to values.
# File lib/rbvmomi/vim/ObjectContent.rb, line 7 def to_hash @cached_hash ||= to_hash_uncached end
Private Instance Methods
to_hash_uncached()
click to toggle source
# File lib/rbvmomi/vim/ObjectContent.rb, line 18 def to_hash_uncached h = {} propSet.each do |x| fail if h.member? x.name h[x.name] = x.val end h end