lib/braintree/xml/parser.rb in braintree-4.16.0 vs lib/braintree/xml/parser.rb in braintree-4.17.0

- old
+ new

@@ -30,10 +30,10 @@ # Transform into standard Ruby types and convert all keys to snake_case instead of dash-case def self._transform_xml(value) case value.class.to_s when "Hash" if value["type"] == "array" - child_key, entries = value.detect { |k,v| k != "type" } # child_key is throwaway + child_key, entries = value.detect { |k,_v| k != "type" } # child_key is throwaway if entries.nil? || ((c = value[CONTENT_ROOT]) && c.strip.empty?) [] else case entries.class.to_s # something weird with classes not matching here. maybe singleton methods breaking is_a? when "Array"