Class: Couchbase::Options::CouchbaseQueue

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/options.rb
more...

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)) {|| ... } ⇒ CouchbaseQueue

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:

[View source]

1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
# File 'lib/couchbase/options.rb', line 1102

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:


1089
1090
1091
# File 'lib/couchbase/options.rb', line 1089

def get_options
  @get_options
end

#lookup_in_optionsLookupIn

Returns:


1091
1092
1093
# File 'lib/couchbase/options.rb', line 1091

def lookup_in_options
  @lookup_in_options
end

#mutate_in_optionsMutateIn

Returns:


1092
1093
1094
# File 'lib/couchbase/options.rb', line 1092

def mutate_in_options
  @mutate_in_options
end

#remove_optionsRemove

Returns:


1090
1091
1092
# File 'lib/couchbase/options.rb', line 1090

def remove_options
  @remove_options
end