Class: Azure::Storage::Common::Service::RetentionPolicy

Inherits:
Object
  • Object
show all
Defined in:
lib/azure/storage/common/service/retention_policy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ RetentionPolicy

Returns a new instance of RetentionPolicy.

Yields:

  • (_self)

Yield Parameters:



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

#daysObject

Returns the value of attribute days.



34
35
36
# File 'lib/azure/storage/common/service/retention_policy.rb', line 34

def days
  @days
end

#enabledObject

Returns the value of attribute enabled.



33
34
35
# File 'lib/azure/storage/common/service/retention_policy.rb', line 33

def enabled
  @enabled
end