Class: Mongo::Operation::Read::Query::Result
- Inherits:
-
Mongo::Operation::Result
- Object
- Mongo::Operation::Result
- Mongo::Operation::Read::Query::Result
- Defined in:
- lib/mongo/operation/read/query/result.rb
Overview
Defines custom behaviour of results for a query.
Constant Summary
Constants inherited from Mongo::Operation::Result
Mongo::Operation::Result::CURSOR, Mongo::Operation::Result::CURSOR_ID, Mongo::Operation::Result::FIRST_BATCH, Mongo::Operation::Result::N, Mongo::Operation::Result::NAMESPACE, Mongo::Operation::Result::NEXT_BATCH, Mongo::Operation::Result::OK, Mongo::Operation::Result::RESULT
Instance Attribute Summary
Attributes inherited from Mongo::Operation::Result
Instance Method Summary collapse
-
#successful? ⇒ true, false
Determine if the query was a success.
Methods inherited from Mongo::Operation::Result
#acknowledged?, #cursor_id, #documents, #each, #initialize, #inspect, #multiple?, #namespace, #ok?, #reply, #returned_count, #validate!, #written_count
Constructor Details
This class inherits a constructor from Mongo::Operation::Result
Instance Method Details
#successful? ⇒ true, false
Determine if the query was a success.
33 34 35 |
# File 'lib/mongo/operation/read/query/result.rb', line 33 def successful? !query_failure? end |