Module: Mongo::Operation::WriteConcernSupported Private
Do not use. This module is for internal use only.
Relationships & Source Files | |
Defined in: | lib/mongo/operation/shared/write_concern_supported.rb |
Overview
Custom behavior for operations that support write concern.
Instance Method Summary
- #add_write_concern!(sel, connection) private Internal use only
- #command(connection) private Internal use only
- #write_concern_supported?(connection) ⇒ Boolean private Internal use only
Instance Method Details
#add_write_concern!(sel, connection) (private)
# File 'lib/mongo/operation/shared/write_concern_supported.rb', line 35
def add_write_concern!(sel, connection) if write_concern && write_concern_supported?(connection) sel[:writeConcern] = write_concern. end sel end
#command(connection) (private)
# File 'lib/mongo/operation/shared/write_concern_supported.rb', line 31
def command(connection) add_write_concern!(super, connection) end
#write_concern_supported?(connection) ⇒ Boolean
(private)
# File 'lib/mongo/operation/shared/write_concern_supported.rb', line 29
def write_concern_supported?(connection); true; end