Class: Couchbase::Management::CreateCollectionSettings
- Inherits:
-
Object
- Object
- Couchbase::Management::CreateCollectionSettings
- Defined in:
- lib/couchbase/management/collection_manager.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/management/collection_manager.rb more...
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 disable it).
Instance Method Summary collapse
-
#initialize(max_expiry: nil, history: nil) {|_self| ... } ⇒ CreateCollectionSettings
constructor
A new instance of CreateCollectionSettings.
Constructor Details
#initialize(max_expiry: nil, history: nil) {|_self| ... } ⇒ CreateCollectionSettings
Returns a new instance of CreateCollectionSettings.
393 394 395 396 397 398 |
# File 'lib/couchbase/management/collection_manager.rb', line 393 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)
391 392 393 |
# File 'lib/couchbase/management/collection_manager.rb', line 391 def history @history end |
#max_expiry ⇒ Integer?
(set to nil
to disable it)
387 388 389 |
# File 'lib/couchbase/management/collection_manager.rb', line 387 def max_expiry @max_expiry end |