Class: Couchbase::Collection::LookupInReplicaResult
- Inherits:
-
LookupInResult
- Object
- LookupInResult
- Couchbase::Collection::LookupInReplicaResult
- Defined in:
- lib/couchbase/collection_options.rb
Instance Attribute Summary collapse
-
#is_replica ⇒ Boolean
(also: #replica?)
True if the document was read from a replica node.
Attributes inherited from LookupInResult
#cas, #deleted, #encoded, #transcoder
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ LookupInReplicaResult
constructor
A new instance of LookupInReplicaResult.
Methods inherited from LookupInResult
Constructor Details
#initialize {|self| ... } ⇒ LookupInReplicaResult
Returns a new instance of LookupInReplicaResult.
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_replica ⇒ Boolean Also known as: replica?
Returns 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 |