def end_element(name)
case name
when 'Enabled'
if @cross_zone_load_balancing
@cross_zone_load_balancing['Enabled'] = value == 'true' ? true : false
elsif @connection_draining
@connection_draining['Enabled'] = value == 'true' ? true : false
end
when 'Timeout'
if @connection_draining
@connection_draining['Timeout'] = value.to_i
end
when 'ConnectionDraining'
@response['DescribeLoadBalancerAttributesResult']['LoadBalancerAttributes']['ConnectionDraining'] = @connection_draining
@connection_draining = nil
when 'CrossZoneLoadBalancing'
@response['DescribeLoadBalancerAttributesResult']['LoadBalancerAttributes']['CrossZoneLoadBalancing'] = @cross_zone_load_balancing
@cross_zone_load_balancing = nil
when 'RequestId'
@response['ResponseMetadata'][name] = value
end
end