Method: Mongo::Auth::ConversationBase#connection

Defined in:
lib/mongo/auth/conversation_base.rb

#connectionMongo::Connection (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns The connection to authenticate over.

Returns:

  • (Mongo::Connection)

    The connection to authenticate over.

Since:

  • 2.0.0



41
42
43
# File 'lib/mongo/auth/conversation_base.rb', line 41

def connection
  @connection
end