Class: Mongo::Operation::UsersInfo::Result
- Inherits:
-
Operation::Result
- Object
- Operation::Result
- Mongo::Operation::UsersInfo::Result
- Defined in:
- lib/mongo/operation/users_info/result.rb
Overview
Defines custom behavior of results when using the usersInfo command.
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.
'users'
Instance Method Summary collapse
Instance Method Details
#documents ⇒ Object
33 34 35 |
# File 'lib/mongo/operation/users_info/result.rb', line 33 def documents reply.documents.first[USERS] end |