Class: Transaction
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Transaction
- Defined in:
- app/models/transaction.rb
Instance Method Summary collapse
Instance Method Details
#response=(response) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'app/models/transaction.rb', line 10 def response=(response) self.success = response.success? self. = response. self. = response. self.params = response.params rescue ActiveMerchant::ActiveMerchantError => e self.success = false self. = nil self. = e. self.params = {} end |