Class: PlentyClient::Listing::Market::Directory
- Inherits:
-
Object
- Object
- PlentyClient::Listing::Market::Directory
- Defined in:
- lib/plenty_client/listing/market/directory.rb
Constant Summary collapse
- FIND_LISTING_MARKET =
'/listings/markets/directories/{directoryId}'
- CREATE_LISTING_MARKET =
'/listings/markets/directories'
- UPDATE_LISTING_MARKET =
'/listings/markets/directories/{directoryId}'
- DELETE_LISTING_MARKET =
'/listings/markets/directories/{directoryId}'
Class Method Summary collapse
- .create(body = {}) ⇒ Object
- .destroy(directory_id, body = {}) ⇒ Object
- .find(directory_id, headers = {}, &block) ⇒ Object
- .update(directory_id, body = {}) ⇒ Object
Methods included from Request
Methods included from Endpoint
Class Method Details
.create(body = {}) ⇒ Object
20 21 22 |
# File 'lib/plenty_client/listing/market/directory.rb', line 20 def create(body = {}) post(build_endpoint(CREATE_LISTING_MARKET), body) end |
.destroy(directory_id, body = {}) ⇒ Object
28 29 30 |
# File 'lib/plenty_client/listing/market/directory.rb', line 28 def destroy(directory_id, body = {}) delete(build_endpoint(DELETE_LISTING_MARKET, directory: directory_id), body) end |
.find(directory_id, headers = {}, &block) ⇒ Object
16 17 18 |
# File 'lib/plenty_client/listing/market/directory.rb', line 16 def find(directory_id, headers = {}, &block) get(build_endpoint(FIND_LISTING_MARKET, directory: directory_id), headers, &block) end |
.update(directory_id, body = {}) ⇒ Object
24 25 26 |
# File 'lib/plenty_client/listing/market/directory.rb', line 24 def update(directory_id, body = {}) put(build_endpoint(UPDATE_LISTING_MARKET, directory: directory_id), body) end |