Class: Couchbase::Management::CollectionSpec
- Inherits:
-
Object
- Object
- Couchbase::Management::CollectionSpec
- 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
-
#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
nilto 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.
510 511 512 |
# File 'lib/couchbase/management/collection_manager.rb', line 510 def initialize yield self if block_given? end |
Instance Attribute Details
#history ⇒ Boolean?
Returns 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_expiry ⇒ Integer
Returns 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 |
#name ⇒ String
Returns name of the collection.
498 499 500 |
# File 'lib/couchbase/management/collection_manager.rb', line 498 def name @name end |
#scope_name ⇒ String
Returns name of the scope.
501 502 503 |
# File 'lib/couchbase/management/collection_manager.rb', line 501 def scope_name @scope_name end |