lib/spektrix/response_parser.rb in spektrix-0.0.2.1 vs lib/spektrix/response_parser.rb in spektrix-0.0.2.3

- old
+ new

@@ -19,11 +19,11 @@ data = [] end # Traverse the array, fixing up any attributes called 'attribute' data.each do |item| + item[:custom_attributes] = {} if item.has_key?(:attribute) - item[:custom_attributes] = {} item[:attribute].each do |attribute_pair| next unless attribute_pair.is_a?(Hash) key = attribute_pair.values.first.underscore.downcase.parameterize("_").to_sym value = attribute_pair.values.last value = false if value == "0" \ No newline at end of file