Class: Resque::CloudWatch::Metrics::Dimensions

Inherits:
Hash
  • Object
show all
Defined in:
lib/resque/cloudwatch/metrics/metric.rb

Instance Method Summary collapse

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_cloudwatchObject



105
106
107
# File 'lib/resque/cloudwatch/metrics/metric.rb', line 105

def to_cloudwatch
  map { |name, value| { name: name, value: value } }
end