Class: Couchbase::Collection::MutationResult
- Inherits:
-
Object
- Object
- Couchbase::Collection::MutationResult
- Defined in:
- lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb more...
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cas ⇒ Integer
Holds the CAS value of the document after the mutation.
-
#mutation_token ⇒ MutationToken
If returned, holds the mutation token of the document after the mutation.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ MutationResult
constructor
A new instance of MutationResult.
Constructor Details
#initialize {|self| ... } ⇒ MutationResult
Returns a new instance of MutationResult.
281 282 283 |
# File 'lib/couchbase/collection_options.rb', line 281 def initialize yield self if block_given? end |
Instance Attribute Details
#cas ⇒ Integer
Returns holds the CAS value of the document after the mutation.
275 276 277 |
# File 'lib/couchbase/collection_options.rb', line 275 def cas @cas end |
#mutation_token ⇒ MutationToken
Returns if returned, holds the mutation token of the document after the mutation.
278 279 280 |
# File 'lib/couchbase/collection_options.rb', line 278 def mutation_token @mutation_token end |