module PlentyClient::Listing
Constants
- CREATE_LISTING
- DELETE_LISTING
- FIND_LISTING
- LIST_LISTINGS
- UPDATE_LISTING
Public Class Methods
create(body = {})
click to toggle source
# File lib/plenty_client/listing.rb, line 23 def create(body = {}) post(CREATE_LISTING, body) end
destroy(listing_id, body = {})
click to toggle source
# File lib/plenty_client/listing.rb, line 31 def destroy(listing_id, body = {}) delete(build_endpoint(DELETE_LISTING, listing: listing_id), body) end
find(listing_id = nil, headers = {}, &block)
click to toggle source
# File lib/plenty_client/listing.rb, line 19 def find(listing_id = nil, headers = {}, &block) get(build_endpoint(FIND_LISTING, listing: listing_id), headers, &block) end
list(headers = {}, &block)
click to toggle source
# File lib/plenty_client/listing.rb, line 15 def list(headers = {}, &block) get(build_endpoint(LIST_LISTINGS), headers, &block) end
update(listing_id, body = {})
click to toggle source
# File lib/plenty_client/listing.rb, line 27 def update(listing_id, body = {}) post(build_endpoint(UPDATE_LISTING, listing: listing_id), body) end