Class: Transbank::Webpay::WebpayPlus::TransactionCreateResponse
- Inherits:
-
Object
- Object
- Transbank::Webpay::WebpayPlus::TransactionCreateResponse
- Defined in:
- lib/transbank/sdk/webpay/webpay_plus/responses/transaction_create_response.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
Returns the value of attribute token.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ TransactionCreateResponse
constructor
A new instance of TransactionCreateResponse.
Constructor Details
#initialize(json) ⇒ TransactionCreateResponse
Returns a new instance of TransactionCreateResponse.
7 8 9 10 |
# File 'lib/transbank/sdk/webpay/webpay_plus/responses/transaction_create_response.rb', line 7 def initialize(json) self.token = json['token'] self.url = json['url'] end |
Instance Attribute Details
#token ⇒ Object
Returns the value of attribute token.
5 6 7 |
# File 'lib/transbank/sdk/webpay/webpay_plus/responses/transaction_create_response.rb', line 5 def token @token end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/transbank/sdk/webpay/webpay_plus/responses/transaction_create_response.rb', line 5 def url @url end |