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

Class: Mongo::WriteConcern::Unacknowledged

Inherits:

Base

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 Summarycollapse

NOOP =

The noop constant for the gle.

nil

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.

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=#{options}>" end