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]

281
282
283
# File 'lib/couchbase/collection_options.rb', line 281

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


275
276
277
# File 'lib/couchbase/collection_options.rb', line 275

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


278
279
280
# File 'lib/couchbase/collection_options.rb', line 278

def mutation_token
  @mutation_token
end