Class: Transbank::TransaccionCompleta::TransactionCaptureResponse
- Inherits:
-
Object
- Object
- Transbank::TransaccionCompleta::TransactionCaptureResponse
- Defined in:
- lib/transbank/sdk/transaccion_completa/responses/transaction_capture_response.rb
Constant Summary collapse
- FIELDS =
i[token captured_amount response_code].freeze
Instance Method Summary collapse
-
#initialize(json) ⇒ TransactionCaptureResponse
constructor
A new instance of TransactionCaptureResponse.
Constructor Details
#initialize(json) ⇒ TransactionCaptureResponse
7 8 9 |
# File 'lib/transbank/sdk/transaccion_completa/responses/transaction_capture_response.rb', line 7 def initialize(json) FIELDS.each { |field| send("#{field}=", json[field.to_s]) } end |