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.
-
#stock_splitters ⇒ Object
Returns the value of attribute stock_splitters.
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.
9 10 11 12 |
# File 'lib/spree/core/environment.rb', line 9 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 |
#stock_splitters ⇒ Object
Returns the value of attribute stock_splitters.
6 7 8 |
# File 'lib/spree/core/environment.rb', line 6 def stock_splitters @stock_splitters end |