Class: PlentyClient::Category::Branch
- Inherits:
-
Object
- Object
- PlentyClient::Category::Branch
- Defined in:
- lib/plenty_client/category/branch.rb
Constant Summary collapse
- FIND_CATEGORY_BRANCH =
'/category_branches/{catId}'
- LIST_CATEGORY_BRANCH =
'/category_branches'
Class Method Summary collapse
Methods included from Request
Methods included from Endpoint
Class Method Details
.find(cat_id, headers = {}, &block) ⇒ Object
17 18 19 20 |
# File 'lib/plenty_client/category/branch.rb', line 17 def find(cat_id, headers = {}, &block) get(build_endpoint(FIND_CATEGORY_BRANCH, cat: cat_id), headers, &block) end |
.list(headers = {}, &block) ⇒ Object
13 14 15 |
# File 'lib/plenty_client/category/branch.rb', line 13 def list(headers = {}, &block) get(build_endpoint(LIST_CATEGORY_BRANCH), headers, &block) end |