Class Mongo::WriteConcern::Acknowledged
In: lib/mongo/write_concern/acknowledged.rb
Parent: Base

An acknowledged write concern provides a get last error command with the appropriate options on each write operation.

@since 2.0.0

Methods

Public Instance methods

Get the get last error command for the concern.

@example Get the gle command.

  acknowledged.get_last_error

@return [ Hash ] The gle command.

@since 2.0.0

Get a human-readable string representation of an acknowledged write concern.

@example Inspect the write concern.

  write_concern.inspect

@return [ String ] A string representation of an acknowledged write concern.

@since 2.0.0

[Validate]