Sha256: 458937860dbb4e64553101bc7a1096f59faee029faf563c4051f04d64656fae8
Contents?: true
Size: 991 Bytes
Versions: 6
Compression:
Stored size: 991 Bytes
Contents
module Spree module API class Client module Properties def properties(product_id, options={}) get("products/#{product_id}/product_properties", options)['product_properties'] end def property(product_id, property_id, options={}) get("products/#{product_id}/product_properties/#{property_id}", options) end def new_property(product_id, options={}) get("products/#{product_id}/product_properties/new", options) end def create_property(product_id, options={}) post("products/#{product_id}/product_properties/", options) end def update_property(product_id, property_id, options={}) put("products/#{product_id}/product_properties/#{property_id}", options) end def delete_property(product_id, property_id, options={}) delete("products/#{product_id}/product_properties/#{property_id}", options) end end end end end
Version data entries
6 entries across 6 versions & 2 rubygems