Class: Couchbase::Collection::MutationResult

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb
more...

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MutationResult.

Yield Parameters:

[View source]

264
265
266
# File 'lib/couchbase/collection_options.rb', line 264

def initialize
  yield self if block_given?
end

Instance Attribute Details

#casInteger

Returns holds the CAS value of the document after the mutation.

Returns:

  • (Integer)

    holds the CAS value of the document after the mutation


258
259
260
# File 'lib/couchbase/collection_options.rb', line 258

def cas
  @cas
end

#mutation_tokenMutationToken

Returns if returned, holds the mutation token of the document after the mutation.

Returns:

  • (MutationToken)

    if returned, holds the mutation token of the document after the mutation


261
262
263
# File 'lib/couchbase/collection_options.rb', line 261

def mutation_token
  @mutation_token
end