adwords_api/lib/adwords_api/batch_job_utils.rb
def sanitize_result(results)
      if results.is_a?(Array)
        ret = []
        results.each do |result|
          ret << sanitize_result(result)
        end
        return ret
      end

      if results.is_a?(Hash)
        ret = {}
        results.each do |k, v|
          v = sanitize_result(v) if v.is_a?(Hash)
          ret[k] = v unless k.to_s.start_with?('@')
        end
        return ret
      end

      return results
    end
def sanitize_result(results)
      if results.is_a?(Array)
        ret = []
        results.each do |result|
          ret << sanitize_result(result)
        end
        return ret
      end

      if results.is_a?(Hash)
        ret = {}
        results.each do |k, v|
          v = sanitize_result(v) if v.is_a?(Hash)
          ret[k] = v unless k.to_s.start_with?('@')
        end
        return ret
      end

      return results
    end
def sanitize_result ( results ) if results . is_a? ( Array ) ret = [ ] results . each do | result | ret << sanitize_result ( result ) end return ret end if results . is_a? ( Hash ) ret = { } results . each do | k , v | v = sanitize_result ( v ) if v . is_a? ( Hash ) ret [ k ] = v unless k . to_s . start_with? ( '@' ) end return ret end return results end
Removes extraneous XML information from return hash.
Removes extraneous XML information from return hash .