Class: Mongo::Operation::UsersInfo::Result Private
- Defined in:
- lib/mongo/operation/users_info/result.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
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'.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
- #documents ⇒ Object private
Methods inherited from Result
#acknowledged?, #cluster_time, #cursor_id, #each, #initialize, #inspect, #labels, #multiple?, #namespace, #ok?, #operation_time, #reply, #returned_count, #successful?, #validate!, #written_count
Constructor Details
This class inherits a constructor from Mongo::Operation::Result
Instance Method Details
#documents ⇒ Object
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.
30 31 32 |
# File 'lib/mongo/operation/users_info/result.rb', line 30 def documents reply.documents.first[USERS] end |