mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
simplified a bit the long case statement in end element in list_metrics parser
This commit is contained in:
parent
efb1c4acb4
commit
2e0061cdac
1 changed files with 4 additions and 8 deletions
|
@ -32,14 +32,10 @@ module Fog
|
|||
|
||||
def end_element(name)
|
||||
case name
|
||||
when 'Name'
|
||||
@dimension['Name'] = value
|
||||
when 'Value'
|
||||
@dimension['Value'] = value
|
||||
when 'Namespace'
|
||||
@metric['Namespace'] = value
|
||||
when 'MetricName'
|
||||
@metric['MetricName'] = value
|
||||
when 'Name', 'Value'
|
||||
@dimension[name] = value
|
||||
when 'Namespace', 'MetricName'
|
||||
@metric[name] = value
|
||||
when 'Dimensions'
|
||||
@in_dimensions = false
|
||||
when 'NextMarker'
|
||||
|
|
Loading…
Reference in a new issue