Class: LunaApi::Inventory

Inherits:
Object
  • Object
show all
Defined in:
lib/luna_api/inventory.rb

Defined Under Namespace

Classes: InventoryError

Class Method Summary collapse

Class Method Details

.update(id, change = -1)) ⇒ Object



5
6
7
8
# File 'lib/luna_api/inventory.rb', line 5

def self.update(id, change=-1)
  response = LunaApi::Request.put("http://inventory.lunasandals.com/inventory-change", :params => {:sku => id, change: change ||= -1})
  handle_response(response)
end