Class: Spree::Core::StockConfiguration
- Inherits:
-
Object
- Object
- Spree::Core::StockConfiguration
- Defined in:
- lib/spree/core/stock_configuration.rb
Instance Attribute Summary collapse
- #allocator_class ⇒ Object
- #coordinator_class ⇒ Object
- #estimator_class ⇒ Object
- #location_sorter_class ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#allocator_class ⇒ Object
31 32 33 34 |
# File 'lib/spree/core/stock_configuration.rb', line 31 def allocator_class @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst' @allocator_class.constantize end |
#coordinator_class ⇒ Object
11 12 13 14 |
# File 'lib/spree/core/stock_configuration.rb', line 11 def coordinator_class @coordinator_class ||= '::Spree::Stock::SimpleCoordinator' @coordinator_class.constantize end |
#estimator_class ⇒ Object
16 17 18 19 |
# File 'lib/spree/core/stock_configuration.rb', line 16 def estimator_class @estimator_class ||= '::Spree::Stock::Estimator' @estimator_class.constantize end |
#location_sorter_class ⇒ Object
26 27 28 29 |
# File 'lib/spree/core/stock_configuration.rb', line 26 def location_sorter_class @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted' @location_sorter_class.constantize end |
Instance Method Details
#location_filter_class ⇒ Object
21 22 23 24 |
# File 'lib/spree/core/stock_configuration.rb', line 21 def location_filter_class @location_filter_class ||= '::Spree::Stock::LocationFilter::Active' @location_filter_class.constantize end |