Sha256: b475fd935f5006d4d08986cade2e952c75185175d914e2a20b892d7921be7096

Contents?: true

Size: 453 Bytes

Versions: 13

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

module Spree
  module Core
    class StockConfiguration
      attr_writer :coordinator_class
      attr_writer :estimator_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
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
solidus_core-2.6.6 lib/spree/core/stock_configuration.rb
solidus_core-2.7.4 lib/spree/core/stock_configuration.rb
solidus_core-2.7.3 lib/spree/core/stock_configuration.rb
solidus_core-2.6.5 lib/spree/core/stock_configuration.rb
solidus_core-2.7.2 lib/spree/core/stock_configuration.rb
solidus_core-2.6.4 lib/spree/core/stock_configuration.rb
solidus_core-2.6.3 lib/spree/core/stock_configuration.rb
solidus_core-2.7.1 lib/spree/core/stock_configuration.rb
solidus_core-2.6.2 lib/spree/core/stock_configuration.rb
solidus_core-2.7.0 lib/spree/core/stock_configuration.rb
solidus_core-2.6.1 lib/spree/core/stock_configuration.rb
solidus_core-2.6.0 lib/spree/core/stock_configuration.rb
solidus_core-2.6.0.rc1 lib/spree/core/stock_configuration.rb