Class: Couchbase::Management::UpdateCollectionSettings
- Inherits:
-
Object
- Object
- Couchbase::Management::UpdateCollectionSettings
- 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 =
UpdateCollectionSettings.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| ... } ⇒ UpdateCollectionSettings
constructor
A new instance of UpdateCollectionSettings.
Constructor Details
#initialize(max_expiry: nil, history: nil) {|_self| ... } ⇒ UpdateCollectionSettings
Returns a new instance of UpdateCollectionSettings.
420 421 422 423 424 425 |
# File 'lib/couchbase/management/collection_manager.rb', line 420 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)
418 419 420 |
# File 'lib/couchbase/management/collection_manager.rb', line 418 def history @history end |
#max_expiry ⇒ Integer?
(set to nil
to disable it)
414 415 416 |
# File 'lib/couchbase/management/collection_manager.rb', line 414 def max_expiry @max_expiry end |