1
0
Fork 0
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:
Henry Addison 2011-05-18 14:42:40 +01:00
parent efb1c4acb4
commit 2e0061cdac

View file

@ -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'