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}'.freeze
LIST_CATEGORY_BRANCH =
'/category_branches'.freeze

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.find(cat_id, headers = {}, &block) ⇒ Object



15
16
17
18
# File 'lib/plenty_client/category/branch.rb', line 15

def find(cat_id, headers = {}, &block)
  get(build_endpoint(FIND_CATEGORY_BRANCH,
                     cat: cat_id), headers, &block)
end

.list(headers = {}, &block) ⇒ Object



11
12
13
# File 'lib/plenty_client/category/branch.rb', line 11

def list(headers = {}, &block)
  get(build_endpoint(LIST_CATEGORY_BRANCH), headers, &block)
end