Class: PlentyClient::ItemSet::Config
- Inherits:
-
Object
- Object
- PlentyClient::ItemSet::Config
show all
- Extended by:
- Endpoint, Request
- Defined in:
- lib/plenty_client/item_set/config.rb
Constant Summary
collapse
- FIND_ITEM_SET_CONFIGS =
'/item_sets/{itemSetId}/config'.freeze
- UPDATE_ITEM_SET_CONFIGS =
'/item_sets/{itemSetId}/config'.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
.find(item_set_id, headers = {}, &block) ⇒ Object
10
11
12
|
# File 'lib/plenty_client/item_set/config.rb', line 10
def find(item_set_id, = {}, &block)
get(build_endpoint(FIND_ITEM_SET_CONFIGS, item_set: item_set_id), , &block)
end
|
.update(item_set_id, body = {}) ⇒ Object
14
15
16
|
# File 'lib/plenty_client/item_set/config.rb', line 14
def update(item_set_id, body = {})
put(build_endpoint(UPDATE_ITEM_SET_CONFIGS, item_set: item_set_id), body)
end
|