    # File lib/fog/aws/parsers/auto_scaling/describe_metric_collection_types.rb, line 33
              def end_element(name)
                case name
                when 'member'
                  if @in_granularities
                    @results['Granularities'] << @granularity
                    reset_granularity
                  elsif @in_metrics
                    @results['Metrics'] << @metric
                    reset_metric
                  end

                when 'Granularity'
                   @granularity[name] = value
                when 'Granularities'
                   @in_granularities = false

                when 'Metric'
                   @metric[name] = value
                when 'Metrics'
                   @in_metrics = false

                when 'RequestId'
                  @response['ResponseMetadata'][name] = value

                when 'DescribeMetricCollectionTypesResult'
                  @response[name] = @results
                end
              end