class PlentyClient::Item::Unit

Constants

CREATE_ITEMS_UNITS
DELETE_ITEMS_UNIT
GET_ITEMS_UNIT
LIST_ITEM_UNITS
UPDATE_ITEM_UNIT

Public Class Methods

create(headers = {}) click to toggle source
# File lib/plenty_client/item/unit.rb, line 16
def create(headers = {})
  post(build_endpoint(CREATE_ITEMS_UNITS), headers)
end
destroy(unit_id) click to toggle source
# File lib/plenty_client/item/unit.rb, line 32
def destroy(unit_id)
  delete(build_endpoint(DELETE_ITEMS_UNIT, unit: unit_id))
end
find(unit_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/unit.rb, line 24
def find(unit_id, headers = {}, &block)
  get(build_endpoint(GET_ITEMS_UNIT, unit: unit_id), headers, &block)
end
list(headers = {}, &block) click to toggle source
# File lib/plenty_client/item/unit.rb, line 20
def list(headers = {}, &block)
  get(build_endpoint(LIST_ITEM_UNITS), headers, &block)
end
update(unit_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/unit.rb, line 28
def update(unit_id, headers = {}, &block)
  put(build_endpoint(UPDATE_ITEM_UNIT, unit: unit_id), headers, &block)
end