module Spree::API::Client::Products

Public Instance Methods

create_product(options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 21
def create_product(options={})
  post("products", options)
end
delete_product(permalink_or_id, options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 29
def delete_product(permalink_or_id, options={})
  delete("products/#{permalink_or_id}", options)
end
new_product(options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 17
def new_product(options={})
  get("products/#{permalink_or_id}/new", options)
end
product(permalink_or_id, options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 9
def product(permalink_or_id, options={})
  get("products/#{permalink_or_id}", options)
end
product_by_sku(options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 13
def product_by_sku(options={})
  get("products/find_by_sku", options)
end
products(options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 5
def products(options={})
  get('products', options)['products']
end
update_product(permalink_or_id, options={}) click to toggle source
# File lib/spree-api-client/products.rb, line 25
def update_product(permalink_or_id, options={})
  put("products/#{permalink_or_id}", options)
end