Module: PlentyClient::Listing::Market
- Includes:
- Endpoint, Request
- Defined in:
- lib/plenty_client.rb,
lib/plenty_client/listing/market.rb,
lib/plenty_client/listing/market/info.rb,
lib/plenty_client/listing/market/text.rb,
lib/plenty_client/listing/market/history.rb,
lib/plenty_client/listing/market/directory.rb
Defined Under Namespace
Classes: Directory, History, Info, Text
Constant Summary
collapse
- FIND_LISTING_MARKET =
'/listings/markets/{marketListingId}'
- LIST_LISTING_MARKETS =
'/listings/markets'
- CREATE_LISTING_MARKET =
'/listings/markets'
- UPDATE_LISTING_MARKET =
'/listings/markets/{marketListingId}'
- DELETE_LISTING_MARKET =
'/listings/markets/{marketListingId}'
- START_LISTING_MARKET =
'/listings/markets/start/{marketListingId}'
- VERIFY_LISTING_MARKET =
'/listings/markets/verify/{marketListingId}'
Class Method Summary
collapse
Methods included from Request
included
Methods included from Endpoint
included
Class Method Details
.create(body = {}) ⇒ Object
26
27
28
|
# File 'lib/plenty_client/listing/market.rb', line 26
def create(body = {})
post(build_endpoint(CREATE_LISTING_MARKET), body)
end
|
.destroy(market_listing_id, body = {}) ⇒ Object
34
35
36
|
# File 'lib/plenty_client/listing/market.rb', line 34
def destroy(market_listing_id, body = {})
delete(build_endpoint(DELETE_LISTING_MARKET, market_listing: market_listing_id), body)
end
|
.find(market_listing_id, headers = {}, &block) ⇒ Object
18
19
20
|
# File 'lib/plenty_client/listing/market.rb', line 18
def find(market_listing_id, = {}, &block)
get(build_endpoint(FIND_LISTING_MARKET, market_listing: market_listing_id), , &block)
end
|
.list(headers = {}, &block) ⇒ Object
22
23
24
|
# File 'lib/plenty_client/listing/market.rb', line 22
def list( = {}, &block)
get(build_endpoint(LIST_LISTING_MARKETS), , &block)
end
|
.start(market_listing_id, body = {}) ⇒ Object
38
39
40
|
# File 'lib/plenty_client/listing/market.rb', line 38
def start(market_listing_id, body = {})
post(build_endpoint(START_LISTING_MARKET, market_listing: market_listing_id), body)
end
|
.update(market_listing_id, body = {}) ⇒ Object
30
31
32
|
# File 'lib/plenty_client/listing/market.rb', line 30
def update(market_listing_id, body = {})
put(build_endpoint(UPDATE_LISTING_MARKET, market_listing: market_listing_id), body)
end
|
.verify(market_listing_id, body = {}) ⇒ Object
42
43
44
|
# File 'lib/plenty_client/listing/market.rb', line 42
def verify(market_listing_id, body = {})
post(build_endpoint(VERIFY_LISTING_MARKET, market_listing: market_listing_id), body)
end
|