Class: Couchbase::Collection::MutationResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MutationResult.

Yield Parameters:

[View source]

254
255
256
# File 'lib/couchbase/collection_options.rb', line 254

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


248
249
250
# File 'lib/couchbase/collection_options.rb', line 248

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


251
252
253
# File 'lib/couchbase/collection_options.rb', line 251

def mutation_token
  @mutation_token
end