Sha256: f9b126edd7acc01a2d2f403d590247af9aba85bd68d05571325100ab462a7f79
Contents?: true
Size: 999 Bytes
Versions: 9
Compression:
Stored size: 999 Bytes
Contents
# frozen_string_literal: true module Spree module Core class StockConfiguration attr_writer :coordinator_class attr_writer :estimator_class attr_writer :location_sorter_class attr_writer :allocator_class def coordinator_class @coordinator_class ||= '::Spree::Stock::SimpleCoordinator' @coordinator_class.constantize end def estimator_class @estimator_class ||= '::Spree::Stock::Estimator' @estimator_class.constantize end def location_filter_class @location_filter_class ||= '::Spree::Stock::LocationFilter::Active' @location_filter_class.constantize end def location_sorter_class @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted' @location_sorter_class.constantize end def allocator_class @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst' @allocator_class.constantize end end end end
Version data entries
9 entries across 9 versions & 1 rubygems