module PlentyClient::Item::Attribute
Constants
- CREATE_ATTRIBUTE
- DELETE_ATTRIBUTE
- GET_ATTRIBUTE
- LIST_ATTRIBUTES
- UPDATE_ATTRIBUTE
Public Class Methods
create(headers = {})
click to toggle source
# File lib/plenty_client/item/attribute.rb, line 24 def create(headers = {}) post(build_endpoint(CREATE_ATTRIBUTE), headers) end
destroy(attribute_id)
click to toggle source
# File lib/plenty_client/item/attribute.rb, line 32 def destroy(attribute_id) delete(build_endpoint(DELETE_attribute, attribute: attribute_id)) end
find(attribute_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/attribute.rb, line 20 def find(attribute_id, headers = {}, &block) get(build_endpoint(GET_ATTRIBUTE, attribute: attribute_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/attribute.rb, line 16 def list(headers = {}, &block) get(build_endpoint(LIST_ATTRIBUTES), headers, &block) end
update(attribute_id, headers = {})
click to toggle source
# File lib/plenty_client/item/attribute.rb, line 28 def update(attribute_id, headers = {}) post(build_endpoint(UPDATE_ATTRIBUTE, attribute: attribute_id), headers) end