Class: Spree::Stock::Coordinator
- Inherits:
-
Object
- Object
- Spree::Stock::Coordinator
- Defined in:
- app/models/spree/stock/coordinator.rb
Instance Attribute Summary collapse
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Instance Method Summary collapse
-
#initialize(order) ⇒ Coordinator
constructor
A new instance of Coordinator.
- #packages ⇒ Object
Constructor Details
#initialize(order) ⇒ Coordinator
Returns a new instance of Coordinator.
6 7 8 |
# File 'app/models/spree/stock/coordinator.rb', line 6 def initialize(order) @order = order end |
Instance Attribute Details
#order ⇒ Object (readonly)
Returns the value of attribute order.
4 5 6 |
# File 'app/models/spree/stock/coordinator.rb', line 4 def order @order end |
Instance Method Details
#packages ⇒ Object
10 11 12 13 14 15 |
# File 'app/models/spree/stock/coordinator.rb', line 10 def packages packages = Array.new packages = build_packages(packages) packages = prioritize_packages(packages) packages = estimate_packages(packages) end |