Class: Couchbase::BinaryCollection::DecrementOptions
- Inherits:
-
CommonOptions
- Object
- CommonOptions
- Couchbase::BinaryCollection::DecrementOptions
- 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
-
#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.
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
#delta ⇒ Integer
Returns 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.
79 80 81 |
# File 'lib/couchbase/binary_collection_options.rb', line 79 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns if set, holds the expiration for the operation.
76 77 78 |
# File 'lib/couchbase/binary_collection_options.rb', line 76 def expiry @expiry end |
#initial ⇒ Integer
Returns if present, holds the initial value.
73 74 75 |
# File 'lib/couchbase/binary_collection_options.rb', line 73 def initial @initial end |