Class: Couchbase::Management::CollectionSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ CollectionSpec

Returns a new instance of CollectionSpec.

Yield Parameters:



510
511
512
# File 'lib/couchbase/management/collection_manager.rb', line 510

def initialize
  yield self if block_given?
end

Instance Attribute Details

#historyBoolean?

Returns whether history retention is enabled for this collection.

Returns:

  • (Boolean, nil)

    whether history retention is enabled for this collection



507
508
509
# File 'lib/couchbase/management/collection_manager.rb', line 507

def history
  @history
end

#max_expiryInteger

Returns time in seconds of the expiration for new documents in the collection (set to nil to disable it).

Returns:

  • (Integer)

    time in seconds of the expiration for new documents in the collection (set to nil to disable it)



504
505
506
# File 'lib/couchbase/management/collection_manager.rb', line 504

def max_expiry
  @max_expiry
end

#nameString

Returns name of the collection.

Returns:

  • (String)

    name of the collection



498
499
500
# File 'lib/couchbase/management/collection_manager.rb', line 498

def name
  @name
end

#scope_nameString

Returns name of the scope.

Returns:

  • (String)

    name of the scope



501
502
503
# File 'lib/couchbase/management/collection_manager.rb', line 501

def scope_name
  @scope_name
end