Class: Spree::Core::Environment Private

Inherits:
Object
  • Object
show all
Includes:
EnvironmentExtension
Defined in:
lib/spree/core/environment.rb,
lib/spree/core/environment/calculators.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Calculators

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods included from EnvironmentExtension

#add_class

Constructor Details

- (Environment) initialize

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

- (Object) calculators

Returns the value of attribute calculators



9
10
11
# File 'lib/spree/core/environment.rb', line 9

def calculators
  @calculators
end

- (Object) preferences

Returns the value of attribute preferences



9
10
11
# File 'lib/spree/core/environment.rb', line 9

def preferences
  @preferences
end

- (Object) promotions

Returns the value of attribute promotions



9
10
11
# File 'lib/spree/core/environment.rb', line 9

def promotions
  @promotions
end