Class: PlentyClient::Category::Branch

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
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

included

Methods included from Endpoint

included

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