Class: Resque::CloudWatch::Metrics::Dimensions
- Inherits:
-
Hash
- Object
- Hash
- Resque::CloudWatch::Metrics::Dimensions
- Defined in:
- lib/resque/cloudwatch/metrics/metric.rb
Instance Method Summary collapse
-
#initialize(hash) ⇒ Dimensions
constructor
A new instance of Dimensions.
- #to_cloudwatch ⇒ Object
Constructor Details
#initialize(hash) ⇒ Dimensions
Returns a new instance of Dimensions.
100 101 102 103 |
# File 'lib/resque/cloudwatch/metrics/metric.rb', line 100 def initialize(hash) super() update(hash) end |
Instance Method Details
#to_cloudwatch ⇒ Object
105 106 107 |
# File 'lib/resque/cloudwatch/metrics/metric.rb', line 105 def to_cloudwatch map { |name, value| { name: name, value: value } } end |