Class: Couchbase::Options::RemoveMulti
- Defined in:
- lib/couchbase/options.rb
Overview
Options for Collection#remove_multi
Instance Attribute Summary collapse
Attributes inherited from Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(durability_level: :none, replicate_to: :none, persist_to: :none, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ RemoveMulti
constructor
Creates an instance of options for Collection#remove.
Constructor Details
#initialize(durability_level: :none, replicate_to: :none, persist_to: :none, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ RemoveMulti
Creates an instance of options for Collection#remove
507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 |
# File 'lib/couchbase/options.rb', line 507 def initialize(durability_level: :none, replicate_to: :none, persist_to: :none, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span) if durability_level != :none && (replicate_to != :none || persist_to != :none) raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options" end @persist_to = persist_to @replicate_to = replicate_to @durability_level = durability_level yield self if block_given? end |
Instance Attribute Details
#durability_level ⇒ Symbol
471 472 473 |
# File 'lib/couchbase/options.rb', line 471 def durability_level @durability_level end |