123456789_123456789_123456789_123456789_123456789_

Class: Mongo::WriteConcern::Unacknowledged

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base
Instance Chain:
self, Base
Inherits: Mongo::WriteConcern::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.

Since:

  • 2.0.0

Constant Summary

Class Method Summary

Base - Inherited

.new

Instantiate a new write concern given the options.

Instance Attribute Summary

Base - Inherited

Instance Method Summary

Instance Attribute Details

#acknowledged?true, false (readonly)

Is this write concern acknowledged.

Examples:

Whether this write concern object is acknowledged.

write_concern.acknowledged?

Returns:

  • (true, false)

    Whether this write concern is acknowledged.

Since:

  • 2.5.0

[ GitHub ]

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

def acknowledged?
  false
end

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

[ GitHub ]

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

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

[ GitHub ]

  
# File 'lib/mongo/write_concern/unacknowledged.rb', line 63

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