class Comet::VSphereConnection

def to_hash

Returns:
  • (Hash) - The complete object as a Ruby hash
def to_hash
  ret = {}
  ret['Hostname'] = @hostname
  ret['Https'] = @https
  ret['AllowInvalidCertificate'] = @allow_invalid_certificate
  ret['Username'] = @username
  ret['Password'] = @password
  ret['ThumbPrint'] = @thumb_print
  @unknown_json_fields.each do |k, v|
    ret[k] = v
  end
  ret
end