Class: Mongo::Operation::UsersInfo::Result

Inherits:
Operation::Result
  • Object
show all
Defined in:
lib/mongo/operation/users_info/result.rb

Overview

Defines custom behavior of results when using the usersInfo command.

Since:

  • 2.1.0

Constant Summary collapse

USERS =

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

The field name for the users document in a usersInfo result.

Since:

  • 2.1.0

'users'

Instance Method Summary collapse

Instance Method Details

#documentsObject

Since:

  • 2.1.0



33
34
35
# File 'lib/mongo/operation/users_info/result.rb', line 33

def documents
  reply.documents.first[USERS]
end