Sha256: 34776c28d06ec8b3f47ea5971711a5b2b758d959e5ce148370b08167582efc12
Contents?: true
Size: 837 Bytes
Versions: 7
Compression:
Stored size: 837 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_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
7 entries across 7 versions & 1 rubygems