Class: Couchbase::Options::LookupInAnyReplica
- Defined in:
- lib/couchbase/options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/options.rb
Overview
Options for Collection#lookup_in_any_replica
Instance Attribute Summary collapse
Attributes inherited from Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(transcoder: JsonTranscoder.new, read_preference: :no_preference, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ LookupInAnyReplica
constructor
Creates an instance of options for Collection#lookup_in_any_replica.
Constructor Details
#initialize(transcoder: JsonTranscoder.new, read_preference: :no_preference, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|self| ... } ⇒ LookupInAnyReplica
Creates an instance of options for Collection#lookup_in_any_replica
1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 |
# File 'lib/couchbase/options.rb', line 1120 def initialize(transcoder: JsonTranscoder.new, read_preference: :no_preference, 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) @transcoder = transcoder @read_preference = read_preference yield self if block_given? end |
Instance Attribute Details
#read_preference ⇒ Symbol
1105 1106 1107 |
# File 'lib/couchbase/options.rb', line 1105 def read_preference @read_preference end |
#transcoder ⇒ JsonTranscoder, #decode(String)
1104 1105 1106 |
# File 'lib/couchbase/options.rb', line 1104 def transcoder @transcoder end |