Class: Mongo::WriteConcern::Unacknowledged

Inherits:
Base
  • Object
show all
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.

Since:

  • 2.0.0

Constant Summary collapse

NOOP =

The noop constant for the gle.

Since:

  • 2.0.0

nil

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#acknowledged?, #initialize

Constructor Details

This class inherits a constructor from Mongo::WriteConcern::Base

Instance Method Details

#get_last_errornil

Get the gle command for an unacknowledged write.

Examples:

Get the gle command.

unacknowledged.get_last_error

Returns:

  • (nil)

    The noop.

Since:

  • 2.0.0



36
37
38
# File 'lib/mongo/write_concern/unacknowledged.rb', line 36

def get_last_error
  NOOP
end

#inspectString

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

Examples:

Inspect the write concern.

write_concern.inspect

Returns:

  • (String)

    A string representation of an unacknowledged write concern.

Since:

  • 2.0.0



48
49
50
# File 'lib/mongo/write_concern/unacknowledged.rb', line 48

def inspect
  "#<Mongo::WriteConcern::Unacknowledged:0x#{object_id} options=#{options}>"
end