Module: PlentyClient::Comment
Constant Summary
collapse
'/comments/{commentId}'.freeze
'/comments/{referenceType}/{referenceValue}'.freeze
'/comments'.freeze
'/comments/{commentId}'.freeze
Class Method Summary
collapse
Methods included from Endpoint
build_endpoint, routes
Methods included from Request
delete, get, patch, post, put, request
Class Method Details
.create(body = {}) ⇒ Object
22
23
24
|
# File 'lib/plenty_client/comment.rb', line 22
def create(body = {})
post(CREATE_CATEGORY, body)
end
|
.delete(cat_id, body = {}) ⇒ Object
26
27
28
|
# File 'lib/plenty_client/comment.rb', line 26
def delete(cat_id, body = {})
delete(build_endpoint(DELETE_CATEGORY, comment: cat_id), body)
end
|
.find(comment_id, headers = {}, &block) ⇒ Object
18
19
20
|
# File 'lib/plenty_client/comment.rb', line 18
def find(, = {}, &block)
get(build_endpoint(FIND_COMMENT, comment: ), , &block)
end
|
.list(reference_type, reference_value, headers = {}, &block) ⇒ Object
12
13
14
15
16
|
# File 'lib/plenty_client/comment.rb', line 12
def list(reference_type, reference_value, = {}, &block)
get(build_endpoint(LIST_COMMENTS,
reference_type: reference_type,
reference_value: reference_value), , &block)
end
|