Class: Couchbase::BinaryCollection::IncrementOptions
- Inherits:
-
CommonOptions
- Object
- CommonOptions
- Couchbase::BinaryCollection::IncrementOptions
- 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| ... } ⇒ IncrementOptions
constructor
A new instance of IncrementOptions.
Constructor Details
#initialize {|self| ... } ⇒ IncrementOptions
Returns a new instance of IncrementOptions.
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
#delta ⇒ Integer
Returns 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.
52 53 54 |
# File 'lib/couchbase/binary_collection_options.rb', line 52 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns if set, holds the expiration for the operation.
49 50 51 |
# File 'lib/couchbase/binary_collection_options.rb', line 49 def expiry @expiry end |
#initial ⇒ Integer
Returns if present, holds the initial value.
46 47 48 |
# File 'lib/couchbase/binary_collection_options.rb', line 46 def initial @initial end |