Class: PlentyClient::Listing::Type

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

Constant Summary collapse

FIND_LISTINGS_TYPE =
'/listings/types/{typeId}'
LIST_LISTINGS_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/type.rb', line 13

def find(type_id, headers = {}, &block)
  get(build_endpoint(FIND_LISTINGS_TYPE, type: type_id), headers, &block)
end

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



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

def list(headers = {}, &block)
  get(build_endpoint(LIST_LISTINGS_TYPES), headers, &block)
end