Class: Mongo::WriteConcern::Acknowledged
- Inherits:
-
Object
- Object
- Mongo::WriteConcern::Acknowledged
- Includes:
- Normalizable
- Defined in:
- lib/mongo/write_concern/acknowledged.rb
Overview
An acknowledged write concern provides a get last error command with the appropriate options on each write operation.
Instance Attribute Summary
Attributes included from Normalizable
Instance Method Summary collapse
-
#get_last_error ⇒ Hash
Get the get last error command for the concern.
-
#inspect ⇒ String
Get a human-readable string representation of an acknowledged write concern.
Methods included from Normalizable
Instance Method Details
#get_last_error ⇒ Hash
Get the get last error command for the concern.
33 34 35 36 37 |
# File 'lib/mongo/write_concern/acknowledged.rb', line 33 def get_last_error @get_last_error ||= { GET_LAST_ERROR => 1 }.merge( Options::Mapper.transform_values_to_strings() ) end |
#inspect ⇒ String
Get a human-readable string representation of an acknowledged write concern.
47 48 49 |
# File 'lib/mongo/write_concern/acknowledged.rb', line 47 def inspect "#<Mongo::WriteConcern::Acknowledged:0x#{object_id} options=#{}>" end |