Class: Couchbase::Options::MutateIn
- Defined in:
- lib/couchbase/options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/options.rb more...
Overview
Options for Collection#mutate_in
Instance Attribute Summary collapse
- #cas ⇒ Integer?
- #durability_level ⇒ Symbol
- #expiry ⇒ Integer, ...
- #preserve_expiry ⇒ Boolean
- #store_semantics ⇒ Symbol
- #transcoder ⇒ JsonTranscoder, #encode(Object)
Attributes inherited from Base
#client_context, #parent_span, #retry_strategy, #timeout
Instance Method Summary collapse
-
#initialize(expiry: nil, preserve_expiry: false, store_semantics: :replace, cas: nil, access_deleted: false, create_as_deleted: false, durability_level: :none, transcoder: JsonTranscoder.new, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ MutateIn
constructor
Creates an instance of options for Collection#mutate_in.
Constructor Details
#initialize(expiry: nil, preserve_expiry: false, store_semantics: :replace, cas: nil, access_deleted: false, create_as_deleted: false, durability_level: :none, transcoder: JsonTranscoder.new, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) {|| ... } ⇒ MutateIn
Creates an instance of options for Collection#mutate_in
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 |
# File 'lib/couchbase/options.rb', line 729 def initialize(expiry: nil, preserve_expiry: false, store_semantics: :replace, cas: nil, access_deleted: false, create_as_deleted: false, durability_level: :none, transcoder: JsonTranscoder.new, timeout: nil, retry_strategy: nil, client_context: nil, parent_span: nil) super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span) @expiry = Utils::Time.extract_expiry_time(expiry) @preserve_expiry = preserve_expiry @store_semantics = store_semantics @cas = cas @access_deleted = access_deleted @create_as_deleted = create_as_deleted @durability_level = durability_level @transcoder = transcoder yield self if block_given? end |
Instance Attribute Details
#cas ⇒ Integer?
691 692 693 |
# File 'lib/couchbase/options.rb', line 691 def cas @cas end |
#durability_level ⇒ Symbol
692 693 694 |
# File 'lib/couchbase/options.rb', line 692 def durability_level @durability_level end |
#expiry ⇒ Integer, ...
689 690 691 |
# File 'lib/couchbase/options.rb', line 689 def expiry @expiry end |
#preserve_expiry ⇒ Boolean
694 695 696 |
# File 'lib/couchbase/options.rb', line 694 def preserve_expiry @preserve_expiry end |
#store_semantics ⇒ Symbol
690 691 692 |
# File 'lib/couchbase/options.rb', line 690 def store_semantics @store_semantics end |
#transcoder ⇒ JsonTranscoder, #encode(Object)
693 694 695 |
# File 'lib/couchbase/options.rb', line 693 def transcoder @transcoder end |