Class: Couchbase::Collection::UpsertOptions
- Inherits:
-
Couchbase::CommonOptions
- Object
- Couchbase::CommonOptions
- Couchbase::Collection::UpsertOptions
- Defined in:
- lib/couchbase/collection_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/collection_options.rb more...
Instance Attribute Summary collapse
-
#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 {|| ... } ⇒ UpsertOptions
constructor
A new instance of UpsertOptions.
Constructor Details
#initialize {|| ... } ⇒ UpsertOptions
Returns a new instance of UpsertOptions.
243 244 245 246 247 248 |
# File 'lib/couchbase/collection_options.rb', line 243 def initialize super @transcoder = JsonTranscoder.new @durability_level = :none yield self if block_given? end |
Instance Attribute Details
#durability_level ⇒ :none, ...
Returns level of durability.
240 241 242 |
# File 'lib/couchbase/collection_options.rb', line 240 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns expiration time to associate with the document.
234 235 236 |
# File 'lib/couchbase/collection_options.rb', line 234 def expiry @expiry end |
#transcoder ⇒ JsonTranscoder
Returns transcoder used for encoding.
237 238 239 |
# File 'lib/couchbase/collection_options.rb', line 237 def transcoder @transcoder end |