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