Class: Moped::WriteConcern::Propagate
- Inherits:
-
Object
- Object
- Moped::WriteConcern::Propagate
- Defined in:
- lib/moped/write_concern/propagate.rb
Overview
Propagating write concerns piggyback a getlasterror command to any write operation with the necessary options.
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Propagate
constructor
Initialize the propagating write concern.
Constructor Details
#initialize(options) ⇒ Propagate
Initialize the propagating write concern.
23 24 25 |
# File 'lib/moped/write_concern/propagate.rb', line 23 def initialize() @operation = { getlasterror: 1 }.merge!(normalize()) end |
Instance Attribute Details
#operation ⇒ Object
13 14 15 |
# File 'lib/moped/write_concern/propagate.rb', line 13 def operation @operation end |