Class: Spree::Core::Environment
- Inherits:
-
Object
- Object
- Spree::Core::Environment
- Includes:
- EnvironmentExtension
- Defined in:
- lib/spree/core/environment.rb,
lib/spree/core/environment/calculators.rb
Defined Under Namespace
Classes: Calculators
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 ⇒ Environment
constructor
A new instance of Environment.
Methods included from EnvironmentExtension
Constructor Details
#initialize ⇒ Environment
Returns a new instance of Environment.
11 12 13 14 15 |
# File 'lib/spree/core/environment.rb', line 11 def initialize @calculators = Calculators.new @preferences = Spree::AppConfiguration.new @promotions = Spree::Promo::Environment.new end |
Instance Attribute Details
#calculators ⇒ Object
Returns the value of attribute calculators.
9 10 11 |
# File 'lib/spree/core/environment.rb', line 9 def calculators @calculators end |
#preferences ⇒ Object
Returns the value of attribute preferences.
9 10 11 |
# File 'lib/spree/core/environment.rb', line 9 def preferences @preferences end |
#promotions ⇒ Object
Returns the value of attribute promotions.
9 10 11 |
# File 'lib/spree/core/environment.rb', line 9 def promotions @promotions end |