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.
-
#payment_methods ⇒ Object
Returns the value of attribute payment_methods.
-
#preferences ⇒ Object
Returns the value of attribute preferences.
Instance Method Summary collapse
-
#initialize ⇒ Environment
constructor
A new instance of Environment.
Constructor Details
#initialize ⇒ Environment
Returns a new instance of Environment.
8 9 10 11 |
# File 'lib/spree/core/environment.rb', line 8 def initialize @calculators = Calculators.new @preferences = Spree::AppConfiguration.new end |
Instance Attribute Details
#calculators ⇒ Object
Returns the value of attribute calculators.
6 7 8 |
# File 'lib/spree/core/environment.rb', line 6 def calculators @calculators end |
#payment_methods ⇒ Object
Returns the value of attribute payment_methods.
6 7 8 |
# File 'lib/spree/core/environment.rb', line 6 def payment_methods @payment_methods end |
#preferences ⇒ Object
Returns the value of attribute preferences.
6 7 8 |
# File 'lib/spree/core/environment.rb', line 6 def preferences @preferences end |