Class: Azure::Storage::Common::Service::RetentionPolicy
- Inherits:
-
Object
- Object
- Azure::Storage::Common::Service::RetentionPolicy
- Defined in:
- lib/azure/storage/common/service/retention_policy.rb
Instance Attribute Summary collapse
-
#days ⇒ Object
Returns the value of attribute days.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ RetentionPolicy
constructor
A new instance of RetentionPolicy.
Constructor Details
#initialize {|_self| ... } ⇒ RetentionPolicy
Returns a new instance of RetentionPolicy.
29 30 31 32 |
# File 'lib/azure/storage/common/service/retention_policy.rb', line 29 def initialize @enabled = false yield self if block_given? end |
Instance Attribute Details
#days ⇒ Object
Returns the value of attribute days.
34 35 36 |
# File 'lib/azure/storage/common/service/retention_policy.rb', line 34 def days @days end |
#enabled ⇒ Object
Returns the value of attribute enabled.
33 34 35 |
# File 'lib/azure/storage/common/service/retention_policy.rb', line 33 def enabled @enabled end |