lib/mousetrap/customer.rb in cameroncox-mousetrap-0.5.1 vs lib/mousetrap/customer.rb in cameroncox-mousetrap-0.5.2

- old
+ new

@@ -23,15 +23,15 @@ :company => company } end def add_item_quantity(item_code, quantity = 1) - attrs = { :itemCode => itemCode, :quantity => quantity } + attrs = { :itemCode => item_code, :quantity => quantity } self.class.put_resource 'customers', 'add-item-quantity', code, attrs end def remove_item_quantity(item_code, quantity = 1) - attrs = { :itemCode => itemCode, :quantity => quantity } + attrs = { :itemCode => item_code, :quantity => quantity } self.class.put_resource 'customers', 'remove-item-quantity', code, attrs end def attributes_for_api # TODO: superclass?