Sha256: 56317a5f7fce54c7682cfa702923dbda566eb818a3a2abbcad5b63758ce5f182

Contents?: true

Size: 416 Bytes

Versions: 26

Compression:

Stored size: 416 Bytes

Contents

module Spree
  module Core
    class StockConfiguration
      attr_writer :coordinator_class
      attr_writer :estimator_class

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

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

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
solidus_core-2.0.0 lib/spree/core/stock_configuration.rb
solidus_core-1.4.0 lib/spree/core/stock_configuration.rb
solidus_core-2.0.0.rc1 lib/spree/core/stock_configuration.rb
solidus_core-1.4.0.rc1 lib/spree/core/stock_configuration.rb
solidus_core-2.0.0.beta1 lib/spree/core/stock_configuration.rb
solidus_core-1.4.0.beta1 lib/spree/core/stock_configuration.rb