Class: Couchbase::Options::Insert
- Defined in:
- lib/couchbase/options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/options.rb more...
Overview
Options for Collection#insert
Instance Attribute Summary collapse
Attributes inherited from Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(expiry: nil, transcoder: JsonTranscoder.new, durability_level: :none, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ Insert
constructor
Creates an instance of options for Collection#insert.
Constructor Details
#initialize(expiry: nil, transcoder: JsonTranscoder.new, durability_level: :none, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ Insert
Creates an instance of options for Collection#insert
488 489 490 491 492 493 494 495 496 497 498 499 500 |
# File 'lib/couchbase/options.rb', line 488 def initialize(expiry: nil, transcoder: JsonTranscoder.new, durability_level: :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) @expiry = Utils::Time.extract_expiry_time(expiry) @transcoder = transcoder @durability_level = durability_level yield self if block_given? end |
Instance Attribute Details
#durability_level ⇒ Symbol
462 463 464 |
# File 'lib/couchbase/options.rb', line 462 def durability_level @durability_level end |
#expiry ⇒ Integer, ...
460 461 462 |
# File 'lib/couchbase/options.rb', line 460 def expiry @expiry end |
#transcoder ⇒ JsonTranscoder, #encode(Object)
461 462 463 |
# File 'lib/couchbase/options.rb', line 461 def transcoder @transcoder end |