Class: Couchbase::Options::LookupInAnyReplica
- Defined in:
- 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
1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 |
# File 'lib/couchbase/options.rb', line 1064 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
1049 1050 1051 |
# File 'lib/couchbase/options.rb', line 1049 def read_preference @read_preference end |
#transcoder ⇒ JsonTranscoder, #decode(String)
1048 1049 1050 |
# File 'lib/couchbase/options.rb', line 1048 def transcoder @transcoder end |