Class: Mongo::Operation::Explain::Result
- Inherits:
-
Operation::Result
- Object
- Operation::Result
- Mongo::Operation::Explain::Result
- Defined in:
- lib/mongo/operation/explain/result.rb
Overview
Defines custom behavior of results in find command with explain.
Instance Method Summary collapse
-
#cursor_id ⇒ 0
private
Get the cursor id.
-
#documents ⇒ Array<BSON::Document>
Get the documents in the result.
Instance Method Details
#cursor_id ⇒ 0
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.
Get the cursor id.
34 35 36 |
# File 'lib/mongo/operation/explain/result.rb', line 34 def cursor_id 0 end |
#documents ⇒ Array<BSON::Document>
Get the documents in the result.
47 48 49 |
# File 'lib/mongo/operation/explain/result.rb', line 47 def documents reply.documents end |