lib/spektrix/response_parser.rb in spektrix-0.0.2.4 vs lib/spektrix/response_parser.rb in spektrix-0.0.2.5

- old
+ new

@@ -23,10 +23,10 @@ data.each do |item| item[:custom_attributes] = {} if item.has_key?(:attribute) item[:attribute].each do |attribute_pair| next unless attribute_pair.is_a?(Hash) - key = attribute_pair.values.first.underscore.downcase.parameterize(separator: "_").to_sym + key = attribute_pair.values.first.underscore.downcase.parameterize("_").to_sym value = attribute_pair.values.last value = false if value == "0" value = true if value == "1" item[:custom_attributes][key] = value end \ No newline at end of file