Class: Mongo::Operation::Commands::GetMore::Result
- Defined in:
- lib/mongo/operation/commands/get_more/result.rb
Overview
Defines custom behaviour of results for the get more command.
Constant Summary
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
-
#cursor_id ⇒ Integer
Get the cursor id.
-
#documents ⇒ Array<BSON::Document>
Get the documents in the result.
Methods inherited from Result
#acknowledged?, #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
#cursor_id ⇒ Integer
Get the cursor id.
33 34 35 |
# File 'lib/mongo/operation/commands/get_more/result.rb', line 33 def cursor_id cursor_document ? cursor_document[CURSOR_ID] : super end |
#documents ⇒ Array<BSON::Document>
Get the documents in the result.
45 46 47 |
# File 'lib/mongo/operation/commands/get_more/result.rb', line 45 def documents cursor_document[NEXT_BATCH] end |