Class: Mongo::Operation::Find::Legacy::Result Private
- Includes:
- Result::UseLegacyErrorParser
- Defined in:
- lib/mongo/operation/find/legacy/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 for a query.
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
#connection_description, #replies
Instance Method Summary collapse
-
#successful? ⇒ true, false
private
Determine if the query was a success.
Methods included from Result::UseLegacyErrorParser
Methods inherited from Result
#acknowledged?, #cluster_time, #cursor_id, #documents, #each, #error, #initialize, #inspect, #labels, #namespace, #ok?, #operation_time, #reply, #returned_count, #topology_version, #validate!, #write_concern_error?, #written_count
Constructor Details
This class inherits a constructor from Mongo::Operation::Result
Instance Method Details
#successful? ⇒ true, false
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.
Determine if the query was a success.
34 35 36 |
# File 'lib/mongo/operation/find/legacy/result.rb', line 34 def successful? !query_failure? end |