lib/moysklad/attributes_converter.rb in moysklad-0.4.0 vs lib/moysklad/attributes_converter.rb in moysklad-0.4.1
- old
+ new
@@ -2,14 +2,13 @@
module AttributesConverter
def initialize(data = {})
if data['attributes']
if data['attributes'].is_a? Array
data['attrs'] = data.delete 'attributes'
- binding.pry
elsif data['attributes'].is_a? Hash
- puts data['attributes']
+ # do nothing
else
- binding.pry
+ raise "Strange attribute class #{data['attribute']}"
end
end
super data
end
end