Class: Couchbase::Options::CouchbaseSet

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/options.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(get_options: Get.new, remove_options: Remove.new, lookup_in_options: LookupIn.new, mutate_in_options: MutateIn.new(store_semantics: :upsert)) {|| ... } ⇒ CouchbaseSet

Creates an instance of options for #initialize

Parameters:

  • get_options (Get) (defaults to: Get.new)
  • remove_options (Remove) (defaults to: Remove.new)
  • lookup_in_options (LookupIn) (defaults to: LookupIn.new)
  • mutate_in_options (MutateIn) (defaults to: MutateIn.new(store_semantics: :upsert))

Yield Parameters:



1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
# File 'lib/couchbase/options.rb', line 1705

def initialize(get_options: Get.new,
               remove_options: Remove.new,
               lookup_in_options: LookupIn.new,
               mutate_in_options: MutateIn.new(store_semantics: :upsert))
  @get_options = get_options
  @remove_options = remove_options
  @lookup_in_options = lookup_in_options
  @mutate_in_options = mutate_in_options
  yield self if block_given?
end

Instance Attribute Details

#get_options ⇒ Get

Returns:



1692
1693
1694
# File 'lib/couchbase/options.rb', line 1692

def get_options
  @get_options
end

#lookup_in_options ⇒ LookupIn

Returns:



1694
1695
1696
# File 'lib/couchbase/options.rb', line 1694

def lookup_in_options
  @lookup_in_options
end

#mutate_in_options ⇒ MutateIn

Returns:



1695
1696
1697
# File 'lib/couchbase/options.rb', line 1695

def mutate_in_options
  @mutate_in_options
end

#remove_options ⇒ Remove

Returns:



1693
1694
1695
# File 'lib/couchbase/options.rb', line 1693

def remove_options
  @remove_options
end