Class: ItemBuilderMwh::Modes::QuantityService
- Inherits:
-
Object
- Object
- ItemBuilderMwh::Modes::QuantityService
show all
- Includes:
- ItemBuilderMwh::Modes
- Defined in:
- lib/item_builder_mwh/modes/quantity_service.rb
Instance Attribute Summary
#listing
Instance Method Summary
collapse
#base, #initialize, #pca, #warehouse, #warehouse_mapping, #warehouse_spaces, #warehouses, #wh_mapping
Instance Method Details
10
11
12
13
14
|
# File 'lib/item_builder_mwh/modes/quantity_service.rb', line 10
def perform
base.merge!(
warehouse: warehouses
)
end
|
#to_h(warehouse_space) ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/item_builder_mwh/modes/quantity_service.rb', line 16
def to_h(warehouse_space)
{
quantity: warehouse_space.quantity,
warehouse_id: wh_mapping(
warehouse_space.warehouse_id
)
}
end
|