class Mongo::WriteConcern::Unacknowledged

An unacknowledged write concern will provide no error on write outside of network and connection exceptions.

@since 2.0.0

Constants

NOOP

The noop constant for the gle.

@since 2.0.0

Public Instance Methods

acknowledged?() click to toggle source

Is this write concern acknowledged.

@example Whether this write concern object is acknowledged.

write_concern.acknowledged?

@return [ true, false ] Whether this write concern is acknowledged.

@since 2.5.0

# File lib/mongo/write_concern/unacknowledged.rb, line 48
def acknowledged?
  false
end
get_last_error() click to toggle source

Get the gle command for an unacknowledged write.

@example Get the gle command.

unacknowledged.get_last_error

@return [ nil ] The noop.

@since 2.0.0

# File lib/mongo/write_concern/unacknowledged.rb, line 36
def get_last_error
  NOOP
end
inspect() click to toggle source

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

@example Inspect the write concern.

write_concern.inspect

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

@since 2.0.0

# File lib/mongo/write_concern/unacknowledged.rb, line 60
def inspect
  "#<Mongo::WriteConcern::Unacknowledged:0x#{object_id} options=#{options}>"
end