Class: Spree::Core::Environment::Calculators
- Inherits:
-
Object
- Object
- Spree::Core::Environment::Calculators
- Includes:
- Spree::Core::EnvironmentExtension
- Defined in:
- lib/spree/core/environment/calculators.rb
Instance Method Summary collapse
- #promotion_actions_create_adjustments ⇒ Object
- #promotion_actions_create_adjustments=(value) ⇒ Object
- #promotion_actions_create_item_adjustments ⇒ Object
- #promotion_actions_create_item_adjustments=(value) ⇒ Object
- #promotion_actions_create_quantity_adjustments ⇒ Object
- #promotion_actions_create_quantity_adjustments=(value) ⇒ Object
Instance Method Details
#promotion_actions_create_adjustments ⇒ Object
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_adjustments ⇒ Object
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_adjustments ⇒ Object
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 |