Class: Couchbase::Management::AnalyticsIndexManager::CreateIndexOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/management/analytics_index_manager.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|| ... } ⇒ CreateIndexOptions

Returns a new instance of CreateIndexOptions.

Yield Parameters:



311
312
313
314
# File 'lib/couchbase/management/analytics_index_manager.rb', line 311

def initialize
  @ignore_if_exists = false
  yield self if block_given?
end

Instance Attribute Details

#dataverse_nameString

Returns The name of the dataverse to use (defaults to nil).

Returns:

  • (String)

    The name of the dataverse to use (defaults to nil)



305
306
307
# File 'lib/couchbase/management/analytics_index_manager.rb', line 305

def dataverse_name
  @dataverse_name
end

#ignore_if_existsBoolean

Returns ignore if the index already exists.

Returns:

  • (Boolean)

    ignore if the index already exists



302
303
304
# File 'lib/couchbase/management/analytics_index_manager.rb', line 302

def ignore_if_exists
  @ignore_if_exists
end

#timeoutInteger

Returns the time in milliseconds allowed for the operation to complete.

Returns:

  • (Integer)

    the time in milliseconds allowed for the operation to complete



308
309
310
# File 'lib/couchbase/management/analytics_index_manager.rb', line 308

def timeout
  @timeout
end