Class: Couchbase::Collection::ReplaceOptions
- Inherits:
-
Couchbase::CommonOptions
- Object
- Couchbase::CommonOptions
- Couchbase::Collection::ReplaceOptions
- Defined in:
- lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb more...
Instance Attribute Summary collapse
-
#cas ⇒ Integer
Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
-
#durability_level ⇒ :none, ...
Level of durability.
-
#expiry ⇒ Integer
Expiration time to associate with the document.
-
#transcoder ⇒ JsonTranscoder
Transcoder used for encoding.
Attributes inherited from Couchbase::CommonOptions
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize {|| ... } ⇒ ReplaceOptions
constructor
A new instance of ReplaceOptions.
Constructor Details
#initialize {|| ... } ⇒ ReplaceOptions
Returns a new instance of ReplaceOptions.
248 249 250 251 252 253 |
# File 'lib/couchbase/collection_options.rb', line 248 def initialize super @transcoder = JsonTranscoder.new @durability_level = :none yield self if block_given? end |
Instance Attribute Details
#cas ⇒ Integer
Returns Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
242 243 244 |
# File 'lib/couchbase/collection_options.rb', line 242 def cas @cas end |
#durability_level ⇒ :none, ...
Returns level of durability.
245 246 247 |
# File 'lib/couchbase/collection_options.rb', line 245 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns expiration time to associate with the document.
236 237 238 |
# File 'lib/couchbase/collection_options.rb', line 236 def expiry @expiry end |
#transcoder ⇒ JsonTranscoder
Returns transcoder used for encoding.
239 240 241 |
# File 'lib/couchbase/collection_options.rb', line 239 def transcoder @transcoder end |