class RbVmomi::BasicTypes::ManagedObject
Public Class Methods
kind()
click to toggle source
# File lib/rbvmomi/basic_types.rb, line 230 def self.kind; :managed end
Public Instance Methods
[](k)
click to toggle source
# File lib/rbvmomi/basic_types.rb, line 260 def [] k _get_property k end
_call(method, o={})
click to toggle source
# File lib/rbvmomi/basic_types.rb, line 253 def _call method, o={} raise 'parameters must be passed as a hash' unless o.is_a? Hash desc = self.class.full_methods_desc[method.to_s] or raise 'unknown method' @connection.call method, desc, self, o end
_get_property(sym)
click to toggle source
# File lib/rbvmomi/basic_types.rb, line 232 def _get_property sym ret = @connection.propertyCollector.RetrieveProperties(specSet: [{ propSet: [{ type: self.class.wsdl_name, pathSet: [sym.to_s] }], objectSet: [{ obj: self }], }])[0] if !ret return nil elsif ret.propSet.empty? return nil if ret.missingSet.empty? raise ret.missingSet[0].fault else ret.propSet[0].val end end
_set_property(sym, val)
click to toggle source
# File lib/rbvmomi/basic_types.rb, line 249 def _set_property sym, val raise 'unimplemented' end