class RbVmomi::BasicTypes::ManagedObject
Public Class Methods
Source
# File lib/rbvmomi/basic_types.rb, line 175 def initialize connection, ref super() @connection = connection @soap = @connection # XXX deprecated @ref = ref end
Calls superclass method
Public Instance Methods
Source
# File lib/rbvmomi/basic_types.rb, line 228 def == x out = (x.class == self.class && x._ref == @ref) out = (x._connection.instanceUuid == self._connection.instanceUuid) if out && x._connection.host out end
Also aliased as: eql?
Source
# File lib/rbvmomi/basic_types.rb, line 210 def _call method, o={} fail "parameters must be passed as a hash" unless o.is_a? Hash desc = self.class.full_methods_desc[method.to_s] or fail "unknown method" @connection.call method, desc, self, o end
Source
# File lib/rbvmomi/basic_types.rb, line 190 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
Source
# File lib/rbvmomi/basic_types.rb, line 206 def _set_property sym, val fail 'unimplemented' end
Source
# File lib/rbvmomi/basic_types.rb, line 220 def pretty_print pp pp.text to_s end
Source
# File lib/rbvmomi/basic_types.rb, line 216 def to_s "#{self.class.wsdl_name}(#{@ref.inspect})" end