Exception: Spree::UnreturnedItemCharger::ChargeFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/spree/core/unreturned_item_charger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, new_order) ⇒ ChargeFailure

Returns a new instance of ChargeFailure.



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

def initialize(message, new_order)
  @new_order = new_order
  super(message)
end

Instance Attribute Details

#new_orderObject

Returns the value of attribute new_order.



4
5
6
# File 'lib/spree/core/unreturned_item_charger.rb', line 4

def new_order
  @new_order
end