Class: Spree::Core::Environment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(spree_config) ⇒ Environment

Returns a new instance of Environment.



16
17
18
19
20
# File 'lib/spree/core/environment.rb', line 16

def initialize(spree_config)
  @calculators = Calculators.new
  @preferences = spree_config
  @promotions = Promotions.new
end

Instance Attribute Details

#calculatorsObject

Returns the value of attribute calculators.



14
15
16
# File 'lib/spree/core/environment.rb', line 14

def calculators
  @calculators
end

#preferencesObject

Returns the value of attribute preferences.



14
15
16
# File 'lib/spree/core/environment.rb', line 14

def preferences
  @preferences
end

#promotionsObject

Returns the value of attribute promotions.



14
15
16
# File 'lib/spree/core/environment.rb', line 14

def promotions
  @promotions
end