class PlentyClient::Item::Attribute::ValueName

Constants

CREATE_ITEM_ATTRIBUTE_VALUES
DELETE_ITEMS_ATTRIBUTE_VALUE
GET_ITEMS_ATTRIBUTE_VALUE
ITEM_ATTRIBUTE_PATH
LIST_ITEM_ATTRIBUTE_VALUE
UPDATE_ITEMS_ATTRIBUTE_VALUE

Public Class Methods

create(attribute_value_id, body = {}) click to toggle source
# File lib/plenty_client/item/attribute/value_name.rb, line 19
def create(attribute_value_id, body = {})
  post(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{CREATE_ITEM_ATTRIBUTE_VALUES}",
                      attribute_value: attribute_value_id),
       body)
end
destroy(attribute_value_id, _value_id) click to toggle source
# File lib/plenty_client/item/attribute/value_name.rb, line 45
def destroy(attribute_value_id, _value_id)
  delete(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{DELETE_ITEMS_ATTRIBUTE_VALUE}",
                        attribute_value: attribute_value_id,
                        lang: lang))
end
find(attribute_value_id, lang, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/attribute/value_name.rb, line 31
def find(attribute_value_id, lang, headers = {}, &block)
  get(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{GET_ITEMS_ATTRIBUTE_VALUE}",
                     attribute_value: attribute_value_id,
                     lang: lang),
      headers, &block)
end
list(attribute_value_id, headers = {}, &block) click to toggle source
# File lib/plenty_client/item/attribute/value_name.rb, line 25
def list(attribute_value_id, headers = {}, &block)
  get(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{LIST_ITEM_ATTRIBUTE_VALUE}",
                     attribute_value: attribute_value_id),
      headers, &block)
end
update(attribute_value_id, lang, body = {}, &block) click to toggle source
# File lib/plenty_client/item/attribute/value_name.rb, line 38
def update(attribute_value_id, lang, body = {}, &block)
  put(build_endpoint("#{ITEM_ATTRIBUTE_PATH}#{UPDATE_ITEMS_ATTRIBUTE_VALUE}",
                     attribute_value: attribute_value_id,
                     lang: lang),
      body, &block)
end