Class: Spree::Core::Environment
- Inherits:
-
Object
- Object
- Spree::Core::Environment
- Includes:
- EnvironmentExtension
- Defined in:
- lib/spree/core/environment.rb,
lib/spree/core/environment/promotions.rb,
lib/spree/core/environment/calculators.rb
Defined Under Namespace
Classes: Calculators, Promotions
Instance Attribute Summary collapse
-
#calculators ⇒ Object
Returns the value of attribute calculators.
-
#preferences ⇒ Object
Returns the value of attribute preferences.
-
#promotions ⇒ Object
Returns the value of attribute promotions.
Instance Method Summary collapse
-
#initialize(spree_config) ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize(spree_config) ⇒ Environment
Returns a new instance of Environment.
15 16 17 18 19 |
# File 'lib/spree/core/environment.rb', line 15 def initialize(spree_config) @calculators = Calculators.new @preferences = spree_config @promotions = Promotions.new end |
Instance Attribute Details
#calculators ⇒ Object
Returns the value of attribute calculators.
13 14 15 |
# File 'lib/spree/core/environment.rb', line 13 def calculators @calculators end |
#preferences ⇒ Object
Returns the value of attribute preferences.
13 14 15 |
# File 'lib/spree/core/environment.rb', line 13 def preferences @preferences end |
#promotions ⇒ Object
Returns the value of attribute promotions.
13 14 15 |
# File 'lib/spree/core/environment.rb', line 13 def promotions @promotions end |