Module: Mongo::WriteConcern::Normalizable
- Included in:
- Acknowledged, Unacknowledged
- Defined in:
- lib/mongo/write_concern/normalizable.rb
Overview
Defines default behavior for write concerns and provides a factory interface to get a proper object from options.
Instance Attribute Summary collapse
-
#options ⇒ Hash
readonly
The write concern options.
Instance Method Summary collapse
-
#initialize(options) ⇒ Object
private
Instantiate a new write concern given the options.
Instance Attribute Details
#options ⇒ Hash (readonly)
Returns The write concern options.
25 26 27 |
# File 'lib/mongo/write_concern/normalizable.rb', line 25 def @options end |
Instance Method Details
#initialize(options) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Instantiate a new write concern given the options.
46 47 48 |
# File 'lib/mongo/write_concern/normalizable.rb', line 46 def initialize() @options = .freeze end |