Class: Mongo::Operation::Commands::UsersInfo::Result
- Defined in:
- lib/mongo/operation/commands/users_info/result.rb
Overview
Defines custom behaviour of results when using the usersInfo command.
Constant Summary collapse
- USERS =
The field name for the users document in a usersInfo result.
'users'.freeze
Constants inherited from Result
Result::CURSOR, Result::CURSOR_ID, Result::FIRST_BATCH, Result::N, Result::NAMESPACE, Result::NEXT_BATCH, Result::OK, Result::RESULT
Instance Attribute Summary
Attributes inherited from Result
Instance Method Summary collapse
Methods inherited from Result
#acknowledged?, #cursor_id, #each, #initialize, #inspect, #multiple?, #namespace, #ok?, #reply, #returned_count, #successful?, #validate!, #written_count
Constructor Details
This class inherits a constructor from Mongo::Operation::Result
Instance Method Details
#documents ⇒ Object
31 32 33 |
# File 'lib/mongo/operation/commands/users_info/result.rb', line 31 def documents reply.documents.first[USERS] end |