class PlentyClient::Item::UnitName
Constants
- CREATE_ITEMS_UNIT_NAME
- DELETE_ITEMS_UNIT_NAME
- FIND_ITEM_UNIT_NAME
- LIST_ITEM_UNIT_NAMES
- UPDATE_ITEMS_UNIT_NAME
Public Class Methods
create(unit_id, headers = {})
click to toggle source
# File lib/plenty_client/item/unit_name.rb, line 26 def create(unit_id, headers = {}) post(build_endpoint(CREATE_ITEMS_UNIT_NAME, unit: unit_id), headers) end
destroy(unit_id, lang)
click to toggle source
# File lib/plenty_client/item/unit_name.rb, line 34 def destroy(unit_id, lang) delete(build_endpoint(DELETE_ITEMS_UNIT_NAME, unit: unit_id, lang: lang)) end
find(unit_id, lang, headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/unit_name.rb, line 22 def find(unit_id, lang, headers = {}, &block) get(build_endpoint(FIND_ITEM_UNIT_NAME, unit: unit_id, lang: lang), headers, &block) end
list(unit_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/unit_name.rb, line 18 def list(unit_id, headers = {}, &block) get(build_endpoint(LIST_ITEM_UNIT_NAMES, unit: unit_id), headers, &block) end
update(unit_id, lang, headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/unit_name.rb, line 30 def update(unit_id, lang, headers = {}, &block) put(build_endpoint(UPDATE_ITEMS_UNIT_NAME, unit: unit_id, lang: lang), headers, &block) end