Class: Couchbase::Collection::LookupInReplicaResult

Inherits:
LookupInResult show all
Defined in:
lib/couchbase/collection_options.rb

Instance Attribute Summary collapse

Attributes inherited from LookupInResult

#cas, #deleted, #encoded, #transcoder

Instance Method Summary collapse

Methods inherited from LookupInResult

#content, #deleted?, #exists?

Constructor Details

#initialize {|self| ... } ⇒ LookupInReplicaResult

Returns a new instance of LookupInReplicaResult.

Yield Parameters:



244
245
246
247
# File 'lib/couchbase/collection_options.rb', line 244

def initialize
  super
  yield self if block_given?
end

Instance Attribute Details

#is_replicaBoolean Also known as: replica?

Returns true if the document was read from a replica node.

Returns:

  • (Boolean)

    true if the document was read from a replica node



240
241
242
# File 'lib/couchbase/collection_options.rb', line 240

def is_replica
  @is_replica
end