Class: Spree::Core::StockConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/spree/core/stock_configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#allocator_classObject


32
33
34
35
# File 'lib/spree/core/stock_configuration.rb', line 32

def allocator_class
  @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst'
  @allocator_class.constantize
end

#coordinator_classObject


12
13
14
15
# File 'lib/spree/core/stock_configuration.rb', line 12

def coordinator_class
  @coordinator_class ||= '::Spree::Stock::SimpleCoordinator'
  @coordinator_class.constantize
end

#estimator_classObject


17
18
19
20
# File 'lib/spree/core/stock_configuration.rb', line 17

def estimator_class
  @estimator_class ||= '::Spree::Stock::Estimator'
  @estimator_class.constantize
end

#location_filter_classObject


22
23
24
25
# File 'lib/spree/core/stock_configuration.rb', line 22

def location_filter_class
  @location_filter_class ||= '::Spree::Stock::LocationFilter::Active'
  @location_filter_class.constantize
end

#location_sorter_classObject


27
28
29
30
# File 'lib/spree/core/stock_configuration.rb', line 27

def location_sorter_class
  @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted'
  @location_sorter_class.constantize
end