Class: Spree::Core::Environment

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

Defined Under Namespace

Classes: Calculators

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from EnvironmentExtension

#add_class

Constructor Details

#initializeEnvironment

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

#calculatorsObject

Returns the value of attribute calculators.



6
7
8
# File 'lib/spree/core/environment.rb', line 6

def calculators
  @calculators
end

#payment_methodsObject

Returns the value of attribute payment_methods.



6
7
8
# File 'lib/spree/core/environment.rb', line 6

def payment_methods
  @payment_methods
end

#preferencesObject

Returns the value of attribute preferences.



6
7
8
# File 'lib/spree/core/environment.rb', line 6

def preferences
  @preferences
end

#stock_splittersObject

Returns the value of attribute stock_splitters.



6
7
8
# File 'lib/spree/core/environment.rb', line 6

def stock_splitters
  @stock_splitters
end