module RbVmomi::BasicTypes::ObjectWithRefAndConnection

Public Class Methods

new(connection, ref) click to toggle source
Calls superclass method
# File lib/rbvmomi/basic_types.rb, line 186
def initialize connection, ref
  super()
  @connection = connection
  @soap = @connection # XXX deprecated
  @ref = ref
end

Public Instance Methods

==(x) click to toggle source
# File lib/rbvmomi/basic_types.rb, line 213
def == x
  out = x.hash == hash
  out = (x._connection.instanceUuid == self._connection.instanceUuid) if out && x._connection.host
  out
end
Also aliased as: eql?
_connection() click to toggle source
# File lib/rbvmomi/basic_types.rb, line 193
def _connection
  @connection
end
_ref() click to toggle source
# File lib/rbvmomi/basic_types.rb, line 197
def _ref
  @ref
end
eql?(x)
Alias for: ==
hash() click to toggle source
# File lib/rbvmomi/basic_types.rb, line 221
def hash
  [self.class, @ref].hash
end
pretty_print(pp) click to toggle source
# File lib/rbvmomi/basic_types.rb, line 209
def pretty_print pp
  pp.text to_s
end
to_hash() click to toggle source
# File lib/rbvmomi/basic_types.rb, line 205
def to_hash
  to_s
end
to_s() click to toggle source
# File lib/rbvmomi/basic_types.rb, line 201
def to_s
  "#{self.class.wsdl_name}(#{@ref.inspect})"
end