Class: Carter::Settings

Inherits:
Object
  • Object
show all
Defined in:
lib/carter/initializer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSettings

Returns a new instance of Settings.



55
56
57
# File 'lib/carter/initializer.rb', line 55

def initialize
  self.cartables = []
end

Instance Attribute Details

#cartablesObject

Returns the value of attribute cartables.



46
47
48
# File 'lib/carter/initializer.rb', line 46

def cartables
  @cartables
end

#default_currencyObject

Returns the value of attribute default_currency.



47
48
49
# File 'lib/carter/initializer.rb', line 47

def default_currency
  @default_currency
end

#on_checkoutObject

Returns the value of attribute on_checkout.



44
45
46
# File 'lib/carter/initializer.rb', line 44

def on_checkout
  @on_checkout
end

#on_failedObject

Returns the value of attribute on_failed.



45
46
47
# File 'lib/carter/initializer.rb', line 45

def on_failed
  @on_failed
end

#payment_methodObject

Returns the value of attribute payment_method.



48
49
50
# File 'lib/carter/initializer.rb', line 48

def payment_method
  @payment_method
end

#persist_by_shopperObject

Returns the value of attribute persist_by_shopper.



43
44
45
# File 'lib/carter/initializer.rb', line 43

def persist_by_shopper
  @persist_by_shopper
end

Instance Method Details

#persist_by_shopper?Boolean

Returns:

  • (Boolean)


50
51
52
# File 'lib/carter/initializer.rb', line 50

def persist_by_shopper?
  @persist_by_shopper
end