    # File lib/fog/aws/parsers/cloud_watch/list_metrics.rb, line 33
              def end_element(name)
                case name
                when 'Name', 'Value'
                  @dimension[name] = value
                when 'Namespace', 'MetricName'
                  @metric[name] = value
                when 'Dimensions'
                  @in_dimensions = false
                when 'NextToken'
                  @response['ListMetricsResult'][name] = value
                when 'RequestId'
                  @response['ResponseMetadata'][name] = value
                when 'member'
                  if !@in_dimensions
                    @response['ListMetricsResult']['Metrics'] << @metric
                    reset_metric
                  else
                    @metric['Dimensions'] << @dimension
                  end
                end
              end