Class: Mongo::WriteConcern::Unacknowledged
- Defined in:
- lib/mongo/write_concern/unacknowledged.rb
Overview
An unacknowledged write concern will provide no error on write outside of network and connection exceptions.
Constant Summary collapse
- NOOP =
The noop constant for the gle.
nil
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#acknowledged? ⇒ true, false
Is this write concern acknowledged.
-
#get_last_error ⇒ nil
Get the gle command for an unacknowledged write.
-
#inspect ⇒ String
Get a human-readable string representation of an unacknowledged write concern.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Mongo::WriteConcern::Base
Instance Method Details
#acknowledged? ⇒ true, false
Is this write concern acknowledged.
51 52 53 |
# File 'lib/mongo/write_concern/unacknowledged.rb', line 51 def acknowledged? false end |
#get_last_error ⇒ nil
Get the gle command for an unacknowledged write.
39 40 41 |
# File 'lib/mongo/write_concern/unacknowledged.rb', line 39 def get_last_error NOOP end |
#inspect ⇒ String
Get a human-readable string representation of an unacknowledged write concern.
63 64 65 |
# File 'lib/mongo/write_concern/unacknowledged.rb', line 63 def inspect "#<Mongo::WriteConcern::Unacknowledged:0x#{object_id} options=#{}>" end |