class Spree::Core::StockConfiguration

Attributes

allocator_class[W]
coordinator_class[W]
estimator_class[W]
location_filter_class[W]
location_sorter_class[W]

Public Instance Methods

allocator_class() click to toggle source
# File lib/spree/core/stock_configuration.rb, line 32
def allocator_class
  @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst'
  @allocator_class.constantize
end
coordinator_class() click to toggle source
# File lib/spree/core/stock_configuration.rb, line 12
def coordinator_class
  @coordinator_class ||= '::Spree::Stock::SimpleCoordinator'
  @coordinator_class.constantize
end
estimator_class() click to toggle source
# File lib/spree/core/stock_configuration.rb, line 17
def estimator_class
  @estimator_class ||= '::Spree::Stock::Estimator'
  @estimator_class.constantize
end
location_filter_class() click to toggle source
# 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_class() click to toggle source
# 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