Class: Couchbase::Management::UpdateCollectionSettings
- Inherits:
-
Object
- Object
- Couchbase::Management::UpdateCollectionSettings
- Defined in:
- lib/couchbase/management/collection_manager.rb,
/code/couchbase-ruby-client/lib/couchbase/management/collection_manager.rb
Constant Summary collapse
- DEFAULT =
UpdateCollectionSettings.new.freeze
Instance Attribute Summary collapse
-
#history ⇒ Boolean?
not update it).
-
#max_expiry ⇒ Integer?
(set to
nil
to not update it, and to-1
set it to no-expiry).
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.
422 423 424 425 426 427 |
# File 'lib/couchbase/management/collection_manager.rb', line 422 def initialize(max_expiry: nil, history: nil) @max_expiry = max_expiry @history = history yield self if block_given? end |
Instance Attribute Details
#history ⇒ Boolean?
not update it)
420 421 422 |
# File 'lib/couchbase/management/collection_manager.rb', line 420 def history @history end |
#max_expiry ⇒ Integer?
(set to nil
to not update it, and to -1
set it to no-expiry)
416 417 418 |
# File 'lib/couchbase/management/collection_manager.rb', line 416 def max_expiry @max_expiry end |