Class: Couchbase::Management::CollectionSpec
- Inherits:
-
Object
- Object
- Couchbase::Management::CollectionSpec
- Defined in:
- lib/couchbase/management/collection_manager.rb,
/code/couchbase-ruby-client/lib/couchbase/management/collection_manager.rb
Instance Attribute Summary collapse
-
#history ⇒ Boolean?
Whether history retention is enabled for this collection.
-
#max_expiry ⇒ Integer
Time in seconds of the expiration for new documents in the collection (set to
nil
to disable it). -
#name ⇒ String
Name of the collection.
-
#scope_name ⇒ String
Name of the scope.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ CollectionSpec
constructor
A new instance of CollectionSpec.
Constructor Details
#initialize {|self| ... } ⇒ CollectionSpec
Returns a new instance of CollectionSpec.
467 468 469 |
# File 'lib/couchbase/management/collection_manager.rb', line 467 def initialize yield self if block_given? end |
Instance Attribute Details
#history ⇒ Boolean?
Returns whether history retention is enabled for this collection.
464 465 466 |
# File 'lib/couchbase/management/collection_manager.rb', line 464 def history @history end |
#max_expiry ⇒ Integer
Returns time in seconds of the expiration for new documents in the collection (set to nil
to disable it).
461 462 463 |
# File 'lib/couchbase/management/collection_manager.rb', line 461 def max_expiry @max_expiry end |
#name ⇒ String
Returns name of the collection.
455 456 457 |
# File 'lib/couchbase/management/collection_manager.rb', line 455 def name @name end |
#scope_name ⇒ String
Returns name of the scope.
458 459 460 |
# File 'lib/couchbase/management/collection_manager.rb', line 458 def scope_name @scope_name end |