Class: Couchbase::BinaryCollection::IncrementOptions

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

Instance Attribute Summary collapse

Attributes inherited from CommonOptions

#client_context, #parent_span, #retry_strategy, #timeout

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IncrementOptions.

Yield Parameters:

[View source]

55
56
57
58
59
# File 'lib/couchbase/binary_collection_options.rb', line 55

def initialize
  super
  @delta = 1
  yield self if block_given?
end

Instance Attribute Details

#deltaInteger

Returns the delta for the operation.

Returns:

  • (Integer)

    the delta for the operation


43
44
45
# File 'lib/couchbase/binary_collection_options.rb', line 43

def delta
  @delta
end

#durability_level:none, ...

Returns level of durability.

Returns:

  • (:none, :majority, :majority_and_persist_to_active, :persist_to_majority)

    level of durability


52
53
54
# File 'lib/couchbase/binary_collection_options.rb', line 52

def durability_level
  @durability_level
end

#expiryInteger

Returns if set, holds the expiration for the operation.

Returns:

  • (Integer)

    if set, holds the expiration for the operation


49
50
51
# File 'lib/couchbase/binary_collection_options.rb', line 49

def expiry
  @expiry
end

#initialInteger

Returns if present, holds the initial value.

Returns:

  • (Integer)

    if present, holds the initial value


46
47
48
# File 'lib/couchbase/binary_collection_options.rb', line 46

def initial
  @initial
end