Class: Spree::Stock::Splitter::ShippingCategory
- Defined in:
- app/models/spree/stock/splitter/shipping_category.rb
Instance Attribute Summary
Attributes inherited from Base
#next_splitter, #stock_location
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Spree::Stock::Splitter::Base
Instance Method Details
#split(packages) ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/models/spree/stock/splitter/shipping_category.rb', line 7 def split(packages) split_packages = [] packages.each do |package| split_packages += split_by_category(package) end return_next split_packages end |