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
- #availability_validator_class ⇒ Object
- #coordinator_class ⇒ Object
- #estimator_class ⇒ Object
- #inventory_unit_builder_class ⇒ Object
- #inventory_validator_class ⇒ Object
- #location_filter_class ⇒ Object
- #location_sorter_class ⇒ Object
Instance Attribute Details
#allocator_class ⇒ Object
35 36 37 38 |
# File 'lib/spree/core/stock_configuration.rb', line 35 def allocator_class @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst' @allocator_class.constantize end |
#availability_validator_class ⇒ Object
45 46 47 48 |
# File 'lib/spree/core/stock_configuration.rb', line 45 def availability_validator_class @availability_validator_class ||= '::Spree::Stock::AvailabilityValidator' @availability_validator_class.constantize end |
#coordinator_class ⇒ Object
15 16 17 18 |
# File 'lib/spree/core/stock_configuration.rb', line 15 def coordinator_class @coordinator_class ||= '::Spree::Stock::SimpleCoordinator' @coordinator_class.constantize end |
#estimator_class ⇒ Object
20 21 22 23 |
# File 'lib/spree/core/stock_configuration.rb', line 20 def estimator_class @estimator_class ||= '::Spree::Stock::Estimator' @estimator_class.constantize end |
#inventory_unit_builder_class ⇒ Object
40 41 42 43 |
# File 'lib/spree/core/stock_configuration.rb', line 40 def inventory_unit_builder_class @inventory_unit_builder_class ||= '::Spree::Stock::InventoryUnitBuilder' @inventory_unit_builder_class.constantize end |
#inventory_validator_class ⇒ Object
50 51 52 53 |
# File 'lib/spree/core/stock_configuration.rb', line 50 def inventory_validator_class @inventory_validator_class ||= '::Spree::Stock::InventoryValidator' @inventory_validator_class.constantize end |
#location_filter_class ⇒ Object
25 26 27 28 |
# File 'lib/spree/core/stock_configuration.rb', line 25 def location_filter_class @location_filter_class ||= '::Spree::Stock::LocationFilter::Active' @location_filter_class.constantize end |
#location_sorter_class ⇒ Object
30 31 32 33 |
# File 'lib/spree/core/stock_configuration.rb', line 30 def location_sorter_class @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted' @location_sorter_class.constantize end |