class Comet::MongoDBConnection
def to_hash
-
(Hash)
- The complete object as a Ruby hash
def to_hash ret = {} ret['Server'] = @server ret['Port'] = @port ret['Username'] = @username ret['Password'] = @password ret['AuthenticationDB'] = @authentication_db ret['MongoShellPath'] = @mongo_shell_path ret['MongodumpPath'] = @mongodump_path ret['ReadPreference'] = @read_preference ret['UseReplica'] = @use_replica ret['ReplicaName'] = @replica_name ret['ReplicaMembers'] = @replica_members ret['UseSSL'] = @use_ssl ret['ClientSSLPEMPath'] = @client_sslpempath ret['ServerSSLPEMPath'] = @server_sslpempath ret['SSLClientKeyPassword'] = @sslclient_key_password ret['AllowInvalidCertificate'] = @allow_invalid_certificate ret['AllowInvalidHostname'] = @allow_invalid_hostname ret['UseSSH'] = @use_ssh unless @sshconnection.nil? ret['SSHConnection'] = @sshconnection end @unknown_json_fields.each do |k, v| ret[k] = v end ret end