Class: Mongo::WriteConcern::Acknowledged
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/acknowledged.rb |
Overview
An acknowledged write concern provides a get last error command with the appropriate options on each write operation.
Class Method Summary
Instance Attribute Summary
Instance Method Summary
-
#get_last_error ⇒ Hash
Get the get last error command for the concern.
-
#inspect ⇒ String
Get a human-readable string representation of an acknowledged write concern.
Instance Attribute Details
#acknowledged? ⇒ true
, false
(readonly)
Is this write concern acknowledged.
# File 'lib/mongo/write_concern/acknowledged.rb', line 48
def acknowledged? true end
Instance Method Details
#get_last_error ⇒ Hash
Get the get last error command for the concern.
# File 'lib/mongo/write_concern/acknowledged.rb', line 34
def get_last_error @get_last_error ||= { GET_LAST_ERROR => 1 }.merge( Options::Mapper.transform_values_to_strings( ) ) end
#inspect ⇒ String
Get a human-readable string representation of an acknowledged write concern.
# File 'lib/mongo/write_concern/acknowledged.rb', line 60
def inspect "#<Mongo::WriteConcern::Acknowledged:0x#{object_id} options=#{}>" end