Module: PlentyClient::Warehouse::Location

Extended by:
Concerns::RestRoutes
Includes:
Request
Defined in:
lib/plenty_client.rb,
lib/plenty_client/warehouse/location.rb,
lib/plenty_client/warehouse/location/level.rb,
lib/plenty_client/warehouse/location/dimension.rb

Defined Under Namespace

Modules: Dimension, Level

Constant Summary collapse

LIST_URL =
'/warehouses/%<warehouse_id>d/locations'

Class Method Summary collapse

Methods included from Concerns::RestRoutes

create, destroy, find, list, skip_rest_routes, update

Methods included from Request

included

Class Method Details

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



13
14
15
# File 'lib/plenty_client/warehouse/location.rb', line 13

def list(warehouse_id, body = {}, &block)
  get(format(LIST_URL, warehouse_id: warehouse_id), body, &block)
end