Class: Spree::Core::StockConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/spree/core/stock_configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#allocator_classObject



35
36
37
38
# File 'lib/spree/core/stock_configuration.rb', line 35

def allocator_class
  @allocator_class ||= '::Spree::Stock::Allocator::OnHandFirst'
  @allocator_class.constantize
end

#availability_validator_classObject



45
46
47
48
# File 'lib/spree/core/stock_configuration.rb', line 45

def availability_validator_class
  @availability_validator_class ||= '::Spree::Stock::AvailabilityValidator'
  @availability_validator_class.constantize
end

#coordinator_classObject



15
16
17
18
# File 'lib/spree/core/stock_configuration.rb', line 15

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

#estimator_classObject



20
21
22
23
# File 'lib/spree/core/stock_configuration.rb', line 20

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

#inventory_unit_builder_classObject



40
41
42
43
# File 'lib/spree/core/stock_configuration.rb', line 40

def inventory_unit_builder_class
  @inventory_unit_builder_class ||= '::Spree::Stock::InventoryUnitBuilder'
  @inventory_unit_builder_class.constantize
end

#inventory_validator_classObject



50
51
52
53
# File 'lib/spree/core/stock_configuration.rb', line 50

def inventory_validator_class
  @inventory_validator_class ||= '::Spree::Stock::InventoryValidator'
  @inventory_validator_class.constantize
end

#location_filter_classObject



25
26
27
28
# File 'lib/spree/core/stock_configuration.rb', line 25

def location_filter_class
  @location_filter_class ||= '::Spree::Stock::LocationFilter::Active'
  @location_filter_class.constantize
end

#location_sorter_classObject



30
31
32
33
# File 'lib/spree/core/stock_configuration.rb', line 30

def location_sorter_class
  @location_sorter_class ||= '::Spree::Stock::LocationSorter::Unsorted'
  @location_sorter_class.constantize
end