module PlentyClient::Item::Property
Constants
- CREATE_PROPERTY
- DELETE_PROPERTY
- GET_PROPERTY
- LIST_ALL_PROPERTIES
- UPDATE_PROPERTY
Public Class Methods
create(headers = {})
click to toggle source
# File lib/plenty_client/item/property.rb, line 24 def create(headers = {}) post(build_endpoint(CREATE_PROPERTY), headers) end
destroy(property_id)
click to toggle source
# File lib/plenty_client/item/property.rb, line 32 def destroy(property_id) delete(build_endpoint(DELETE_PROPERTY, property: property_id)) end
find(property_id, headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/property.rb, line 20 def find(property_id, headers = {}, &block) get(build_endpoint(GET_PROPERTY, property: property_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/item/property.rb, line 16 def list(headers = {}, &block) get(build_endpoint(LIST_ALL_PROPERTIES), headers, &block) end
update(property_id, headers = {})
click to toggle source
# File lib/plenty_client/item/property.rb, line 28 def update(property_id, headers = {}) put(build_endpoint(UPDATE_PROPERTY, property: property_id), headers) end