Method: Mongo::Auth::Base#connection

Defined in:
lib/mongo/auth/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



33
34
35
# File 'lib/mongo/auth/base.rb', line 33

def connection
  @connection
end