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

Constructor Details

#initializeEnvironment

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

#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