Class: PlentyClient::Listing::StockDependenceType

Inherits:
Object
  • Object
show all
Includes:
Endpoint, Request
Defined in:
lib/plenty_client/listing/stock_dependence_type.rb

Constant Summary collapse

FIND_LISTINGS_STOCK_DEPENCENCE_TYPE =
'/listings/types/{typeId}'
LIST_LISTINGS_STOCK_DEPENCENCE_TYPES =
'/listings/types'

Class Method Summary collapse

Methods included from Request

included

Methods included from Endpoint

included

Class Method Details

.find(type_id, headers = {}, &block) ⇒ Object



13
14
15
# File 'lib/plenty_client/listing/stock_dependence_type.rb', line 13

def find(type_id, headers = {}, &block)
  GET(BUILD_ENDPOINT(FIND_LISTINGS_STOCK_DEPENCENCE_TYPE, type: type_id), headers, &block)
end

.list(headers = {}, &block) ⇒ Object



17
18
19
# File 'lib/plenty_client/listing/stock_dependence_type.rb', line 17

def list(headers = {}, &block)
  GET(BUILD_ENDPOINT(LIST_LISTINGS_STOCK_DEPENCENCE_TYPES), headers, &block)
end