Class: ItemBuilderMwh::Modes::ActiveService
- Inherits:
-
Object
- Object
- ItemBuilderMwh::Modes::ActiveService
- Includes:
- ItemBuilderMwh::Modes
- Defined in:
- lib/item_builder_mwh/modes/active_service.rb
Instance Attribute Summary
Attributes included from ItemBuilderMwh::Modes
#bundles, #existing_alloc_stocks, #item_bundle_variants, #listing, #reserved_stocks, #stock_allocs, #variant_listings, #variants, #wh_spaces, #zalora_reserved_stock, #zilingo_delta_quantity
Instance Method Summary collapse
Methods included from ItemBuilderMwh::Modes
#base, #bundle, #bundle_variants, #existing_allocated_stock, #initialize, #listings, #pca, #stock_alloc, #variant, #warehouse, #warehouse_mapping, #warehouse_spaces, #warehouses, #wh_mapping
Instance Method Details
#perform ⇒ Object
9 10 11 12 13 |
# File 'lib/item_builder_mwh/modes/active_service.rb', line 9 def perform base.merge!( warehouse: warehouses ) end |
#to_h(warehouse_space) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/item_builder_mwh/modes/active_service.rb', line 15 def to_h(warehouse_space) { active: listing.active, quantity: warehouse_space.quantity, warehouse_id: wh_mapping( warehouse_space.warehouse_id ) } end |