module PlentyClient::Comment
Constants
- CREATE_COMMENT
- DELETE_COMMENT
- FIND_COMMENT
- LIST_COMMENTS
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/comment.rb, line 24 def create(body = {}) post(CREATE_COMMENT, body) end
destroy(cat_id, body = {})
click to toggle source
# File lib/plenty_client/comment.rb, line 28 def destroy(cat_id, body = {}) delete(build_endpoint(DELETE_COMMENT, comment: cat_id), body) end
find(comment_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/comment.rb, line 20 def find(comment_id, headers = {}, &block) get(build_endpoint(FIND_COMMENT, comment: comment_id), headers, &block) end
list(reference_type, reference_value, headers = {}, &block)
click to toggle source
# File lib/plenty_client/comment.rb, line 14 def list(reference_type, reference_value, headers = {}, &block) get(build_endpoint(LIST_COMMENTS, reference_type: reference_type, reference_value: reference_value), headers, &block) end