Class: Couchbase::Collection::InsertOptions
- Inherits:
-
Couchbase::CommonOptions
- Object
- Couchbase::CommonOptions
- Couchbase::Collection::InsertOptions
- 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 ⇒ Proc
Transcoder used for encoding.
Attributes inherited from Couchbase::CommonOptions
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize {|| ... } ⇒ InsertOptions
constructor
A new instance of InsertOptions.
Constructor Details
#initialize {|| ... } ⇒ InsertOptions
Returns a new instance of InsertOptions.
224 225 226 227 228 229 |
# File 'lib/couchbase/collection_options.rb', line 224 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.
221 222 223 |
# File 'lib/couchbase/collection_options.rb', line 221 def durability_level @durability_level end |
#expiry ⇒ Integer
Returns expiration time to associate with the document.
215 216 217 |
# File 'lib/couchbase/collection_options.rb', line 215 def expiry @expiry end |
#transcoder ⇒ Proc
Returns transcoder used for encoding.
218 219 220 |
# File 'lib/couchbase/collection_options.rb', line 218 def transcoder @transcoder end |