Class: Couchbase::BinaryCollection::DecrementOptions
- Inherits:
-
CommonOptions
- Object
- CommonOptions
- Couchbase::BinaryCollection::DecrementOptions
- Defined in:
- lib/couchbase/binary_collection_options.rb
Instance Attribute Summary collapse
-
#delta ⇒ Integer
The delta for the operation.
-
#durability_level ⇒ :none, ...
Level of durability.
-
#expiry ⇒ Integer
If set, holds the expiration for the operation.
-
#initial ⇒ Integer
If present, holds the initial value.
Attributes inherited from CommonOptions
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ DecrementOptions
constructor
A new instance of DecrementOptions.
Constructor Details
#initialize {|self| ... } ⇒ DecrementOptions
Returns a new instance of DecrementOptions.
80 81 82 83 |
# File 'lib/couchbase/binary_collection_options.rb', line 80 def initialize @delta = 1 yield self if block_given? end |
Instance Attribute Details
#delta ⇒ Integer
Returns the delta for the operation.
68 69 70 |
# File 'lib/couchbase/binary_collection_options.rb', line 68 def delta @delta end |
#durability_level ⇒ :none, ...
Returns level of durability.
77 78 79 |
# File 'lib/couchbase/binary_collection_options.rb', line 77 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns if set, holds the expiration for the operation.
74 75 76 |
# File 'lib/couchbase/binary_collection_options.rb', line 74 def expiry @expiry end |
#initial ⇒ Integer
Returns if present, holds the initial value.
71 72 73 |
# File 'lib/couchbase/binary_collection_options.rb', line 71 def initial @initial end |