Acknowledged — Documentation by YARD 0.9.37 (original) (raw)

Class: Mongo::WriteConcern::Acknowledged

Inherits:

Base

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 inherited from Base

#options

Instance Method Summarycollapse

Methods inherited from Base

#initialize

Instance Method Details

#acknowledged? ⇒ true, false

Is this write concern acknowledged.

48 49 50 # File 'lib/mongo/write_concern/acknowledged.rb', line 48 def acknowledged? true end

#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.

60 61 62 # File 'lib/mongo/write_concern/acknowledged.rb', line 60 def inspect "#<Mongo::WriteConcern::Acknowledged:0x#{object_id} options=#{options}>" end