module Spree::API::Client::StockLocations
Public Instance Methods
create_stock_location(options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 17 def create_stock_location(options={}) post("stock_locations", options) end
delete_stock_location(stock_location, options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 25 def delete_stock_location(stock_location, options={}) delete("stock_locations/#{stock_location}", options) end
new_stock_location(options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 13 def new_stock_location(options={}) get("stock_locations/#{permalink_or_id}/new", options) end
stock_location(stock_location, options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 9 def stock_location(stock_location, options={}) get("stock_locations/#{stock_location}", options) end
stock_locations(options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 5 def stock_locations(options={}) get('stock_locations', options)['stock_locations'] end
update_stock_location(stock_location, options={})
click to toggle source
# File lib/spree-api-client/stock_locations.rb, line 21 def update_stock_location(stock_location, options={}) put("stock_locations/#{stock_location}", options) end