Class: Couchbase::Management::CreateCollectionSettings
- Inherits:
-
Object
- Object
- Couchbase::Management::CreateCollectionSettings
- Defined in:
- lib/couchbase/management/collection_manager.rb
Constant Summary collapse
- DEFAULT =
CreateCollectionSettings.new.freeze
Instance Attribute Summary collapse
-
#history ⇒ Boolean?
default to the bucket-level setting).
-
#max_expiry ⇒ Integer?
(set to
nil
to use the bucket-level setting, and to-1
set it to no-expiry).
Instance Method Summary collapse
-
#initialize(max_expiry: nil, history: nil) {|_self| ... } ⇒ CreateCollectionSettings
constructor
A new instance of CreateCollectionSettings.
- #to_backend ⇒ Object private
Constructor Details
#initialize(max_expiry: nil, history: nil) {|_self| ... } ⇒ CreateCollectionSettings
Returns a new instance of CreateCollectionSettings.
395 396 397 398 399 400 |
# File 'lib/couchbase/management/collection_manager.rb', line 395 def initialize(max_expiry: nil, history: nil) @max_expiry = max_expiry @history = history yield self if block_given? end |
Instance Attribute Details
#history ⇒ Boolean?
default to the bucket-level setting)
393 394 395 |
# File 'lib/couchbase/management/collection_manager.rb', line 393 def history @history end |
#max_expiry ⇒ Integer?
(set to nil
to use the bucket-level setting, and to -1
set it to no-expiry)
389 390 391 |
# File 'lib/couchbase/management/collection_manager.rb', line 389 def max_expiry @max_expiry end |
Instance Method Details
#to_backend ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
403 404 405 406 407 408 |
# File 'lib/couchbase/management/collection_manager.rb', line 403 def to_backend { max_expiry: @max_expiry, history: @history, } end |