Class: Transbank::Webpay::WebpayPlus::TransactionRefundResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/sdk/webpay/webpay_plus/responses/transaction_refund_response.rb

Constant Summary collapse

FIELDS =
[:type, :authorize_code, :authorization_date, :nullified_amount,
:balance, :response_code]

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ TransactionRefundResponse

Returns a new instance of TransactionRefundResponse.



12
13
14
# File 'lib/transbank/sdk/webpay/webpay_plus/responses/transaction_refund_response.rb', line 12

def initialize(json)
  FIELDS.each {|field| send("#{field}=", json["#{field}"]) }
end