Class: Mongo::WriteConcern::Unacknowledged

Inherits:
Object
  • Object
show all
Includes:
Normalizable
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

NOOP =

The noop constant for the gle.

Since:

  • 2.0.0

nil

Instance Attribute Summary

Attributes included from Normalizable

#options

Instance Method Summary collapse

Methods included from Normalizable

#initialize

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



38
39
40
# File 'lib/mongo/write_concern/unacknowledged.rb', line 38

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



50
51
52
# File 'lib/mongo/write_concern/unacknowledged.rb', line 50

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