Class: Laundry::PaymentsGateway::Transaction
- Inherits:
-
ResponseModel
- Object
- ResponseModel
- Laundry::PaymentsGateway::Transaction
- Defined in:
- lib/laundry/payments_gateway/models/transaction.rb
Instance Attribute Summary
Attributes inherited from ResponseModel
Instance Method Summary collapse
Methods inherited from ResponseModel
#blank?, dump, #dumpable, from_response, load, #method_missing, #require_merchant!, #to_hash
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Laundry::PaymentsGateway::ResponseModel
Instance Method Details
#initialize_with_response(response) ⇒ Object
6 7 8 |
# File 'lib/laundry/payments_gateway/models/transaction.rb', line 6 def initialize_with_response(response) self.record = response[:get_transaction_response][:get_transaction_result] end |
#status ⇒ Object
10 11 12 |
# File 'lib/laundry/payments_gateway/models/transaction.rb', line 10 def status record[:response][:status].downcase end |