class PlentyClient::Document::Category
Constants
- DELTE_CATEGORY_DOCUMENTS
- DOWNLOAD_CATEGORY_DOCUMENT
- LIST_CATEGORY_DOCUMENTS
- UPLOAD_CATEGORY_DOCUMENT
Public Class Methods
destroy(category_id, body = {})
click to toggle source
# File lib/plenty_client/document/category.rb, line 27 def destroy(category_id, body = {}) delete(build_endpoint(DELTE_LISTINGS_category, category: category_id), body) end
download(category_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/document/category.rb, line 15 def download(category_id, headers = {}, &block) get(build_endpoint(DOWNLOAD_CATEGORY_DOCUMENT, category: category_id), headers, &block) end
list(category_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/document/category.rb, line 19 def list(category_id, headers = {}, &block) get(build_endpoint(LIST_CATEGORY_DOCUMENTS, category: category_id), headers, &block) end
upload(category_id, body = {})
click to toggle source
# File lib/plenty_client/document/category.rb, line 23 def upload(category_id, body = {}) post(build_endpoint(CREATE_CATEGORY_DOCUMENTS, category: category_id), body) end