class Mongo::Operation::Explain::Result
Defines custom behavior of results in find command with explain.
@since 2.5.0
Public Instance Methods
cursor_id()
click to toggle source
Get the cursor id.
@example Get the cursor id.
result.cursor_id
@return [ 0 ] Always 0 because explain doesn't return a cursor.
@since 2.5.0
# File lib/mongo/operation/explain/result.rb, line 32 def cursor_id 0 end
documents()
click to toggle source
Get the documents in the result.
@example Get the documents.
result.documents
@return [ Array<BSON::Document> ] The documents.
@since 2.5.0
# File lib/mongo/operation/explain/result.rb, line 44 def documents reply.documents end