class PlentyClient::Item::Attribute::Name

Constants

CREATE_ITEM_ATTRIBUTES
DELETE_ITEMS_ATTRIBUTE
GET_ITEMS_ATTRIBUTE
ITEM_ATTRIBUTE_PATH
LIST_ITEM_ATTRIBUTE
UPDATE_ITEMS_ATTRIBUTE

Public Class Methods

create(attribute_id, headers = {}) click to toggle source
# File lib/plenty_client/item/attribute/name.rb, line 19
def create(attribute_id, headers = {})
  post(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{CREATE_ITEM_ATTRIBUTES}", attribute: attribute_id), headers)
end
destroy(attribute_id, lang) click to toggle source
# File lib/plenty_client/item/attribute/name.rb, line 38
def destroy(attribute_id, lang)
  delete(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{DELETE_ITEMS_ATTRIBUTE}",
                        attribute: attribute_id, lang: lang))
end
find(attribute_id, lang, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/attribute/name.rb, line 28
def find(attribute_id, lang, headers = {}, &block)
  get(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{GET_ITEMS_ATTRIBUTE}", attribute: attribute_id, lang: lang),
      headers, &block)
end
list(attribute_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/attribute/name.rb, line 23
def list(attribute_id, headers = {}, &block)
  get(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{LIST_ITEM_ATTRIBUTE}", attribute: attribute_id),
      headers, &block)
end
update(attribute_id, lang, body = {}) click to toggle source
# File lib/plenty_client/item/attribute/name.rb, line 33
def update(attribute_id, lang, body = {})
  put(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{UPDATE_ITEMS_ATTRIBUTE}", attribute: attribute_id, lang: lang),
      body)
end