Class: Transbank::Webpay::WebpayPlus::TransactionCaptureResponse
- Inherits:
-
Object
- Object
- Transbank::Webpay::WebpayPlus::TransactionCaptureResponse
- Defined in:
- lib/transbank/sdk/webpay/webpay_plus/deferred/responses/transaction_capture_response.rb
Constant Summary collapse
- FIELDS =
[:token, :authorization_code, :authorization_date, :captured_amount, :response_code]
Instance Method Summary collapse
-
#initialize(json) ⇒ TransactionCaptureResponse
constructor
A new instance of TransactionCaptureResponse.
Constructor Details
#initialize(json) ⇒ TransactionCaptureResponse
Returns a new instance of TransactionCaptureResponse.
15 16 17 |
# File 'lib/transbank/sdk/webpay/webpay_plus/deferred/responses/transaction_capture_response.rb', line 15 def initialize(json) FIELDS.each {|field| send("#{field}=", json["#{field}"]) } end |