Module Moped::WriteConcern
In: lib/moped/write_concern/unverified.rb
lib/moped/write_concern/propagate.rb
lib/moped/write_concern.rb

Provides behaviour on getting the correct write concern for an option.

@since 2.0.0

Methods

get  

Classes and Modules

Class Moped::WriteConcern::Propagate
Class Moped::WriteConcern::Unverified

Public Instance methods

Get the corresponding write concern for the provided value. If the value is unverified we get that concern, otherwise we get propagate.

@example Get the appropriate write concern.

  Moped::WriteConcern.get(w: 3)

@param [ Symbol, String, Hash ] The value to use to get the concern.

@return [ Unverified, Propagate ] The appropriate write concern.

@since 2.0.0

[Validate]