class PlentyClient::Category::Template
Constants
- DELETE_CATEGORY_TEMPLATE
- FIND_CATEGORY_TEMPLATE
- UPDATE_CATEGORY_TEMPLATE
Public Class Methods
destroy(cat_id, body = {})
click to toggle source
# File lib/plenty_client/category/template.rb, line 24 def destroy(cat_id, body = {}) delete(build_endpoint(DELETE_CATEGORY_TEMPLATE, cat: cat_id), body) end
list(cat_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/category/template.rb, line 14 def list(cat_id, headers = {}, &block) get(build_endpoint(LIST_BASKET_ITEMS, cat: cat_id), headers, &block) end
update(cat_id, body = {})
click to toggle source
# File lib/plenty_client/category/template.rb, line 19 def update(cat_id, body = {}) put(build_endpoint(UPDATE_CATEGORY_TEMPLATE, cat: cat_id), body) end