Class: Couchbase::Options::CouchbaseMap

Inherits:
Object
  • Object
show all
Defined in:
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)) {|| ... } ⇒ CouchbaseMap

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:



1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
# File 'lib/couchbase/options.rb', line 1030

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_optionsGet

Returns:



1017
1018
1019
# File 'lib/couchbase/options.rb', line 1017

def get_options
  @get_options
end

#lookup_in_optionsLookupIn

Returns:



1019
1020
1021
# File 'lib/couchbase/options.rb', line 1019

def lookup_in_options
  @lookup_in_options
end

#mutate_in_optionsMutateIn

Returns:



1020
1021
1022
# File 'lib/couchbase/options.rb', line 1020

def mutate_in_options
  @mutate_in_options
end

#remove_optionsRemove

Returns:



1018
1019
1020
# File 'lib/couchbase/options.rb', line 1018

def remove_options
  @remove_options
end