Class: Spree::Core::Environment::Calculators

Inherits:
Object
  • Object
show all
Includes:
Spree::Core::EnvironmentExtension
Defined in:
lib/spree/core/environment/calculators.rb

Instance Method Summary collapse

Instance Method Details

#promotion_actions_create_adjustmentsObject



12
13
14
# File 'lib/spree/core/environment/calculators.rb', line 12

def promotion_actions_create_adjustments
  promotion_config.calculators["Spree::Promotion::Actions::CreateAdjustment"]
end

#promotion_actions_create_adjustments=(value) ⇒ Object



17
18
19
# File 'lib/spree/core/environment/calculators.rb', line 17

def promotion_actions_create_adjustments=(value)
  promotion_config.calculators["Spree::Promotion::Actions::CreateAdjustment"] = value
end

#promotion_actions_create_item_adjustmentsObject



22
23
24
# File 'lib/spree/core/environment/calculators.rb', line 22

def promotion_actions_create_item_adjustments
  promotion_config.calculators["Spree::Promotion::Actions::CreateItemAdjustments"]
end

#promotion_actions_create_item_adjustments=(value) ⇒ Object



27
28
29
# File 'lib/spree/core/environment/calculators.rb', line 27

def promotion_actions_create_item_adjustments=(value)
  promotion_config.calculators["Spree::Promotion::Actions::CreateItemAdjustments"] = value
end

#promotion_actions_create_quantity_adjustmentsObject



32
33
34
# File 'lib/spree/core/environment/calculators.rb', line 32

def promotion_actions_create_quantity_adjustments
  promotion_config.calculators["Spree::Promotion::Actions::CreateQuantityAdjustments"]
end

#promotion_actions_create_quantity_adjustments=(value) ⇒ Object



37
38
39
# File 'lib/spree/core/environment/calculators.rb', line 37

def promotion_actions_create_quantity_adjustments=(value)
  promotion_config.calculators["Spree::Promotion::Actions::CreateQuantityAdjustments"] = value
end