Class: Couchbase::BinaryCollection::DecrementOptions

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| ... } ⇒ DecrementOptions

Returns a new instance of DecrementOptions.

Yield Parameters:

[View source]

82
83
84
85
86
# File 'lib/couchbase/binary_collection_options.rb', line 82

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


70
71
72
# File 'lib/couchbase/binary_collection_options.rb', line 70

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


79
80
81
# File 'lib/couchbase/binary_collection_options.rb', line 79

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


76
77
78
# File 'lib/couchbase/binary_collection_options.rb', line 76

def expiry
  @expiry
end

#initialInteger

Returns if present, holds the initial value.

Returns:

  • (Integer)

    if present, holds the initial value


73
74
75
# File 'lib/couchbase/binary_collection_options.rb', line 73

def initial
  @initial
end