Method: Mongo::Auth::User#hash

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

#hashString

Get the hash key for the user.

Examples:

Get the hash key.

user.hash

Returns:

  • (String)

    The user hash key.

Since:

  • 2.0.0



110
111
112
# File 'lib/mongo/auth/user.rb', line 110

def hash
  [ name, database, password ].hash
end