Class: Transbank::Patpass::PatpassComercio::InscriptionStartResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/transbank/sdk/patpass/patpass_comercio/responses/inscription_start_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ InscriptionStartResponse

Returns a new instance of InscriptionStartResponse.



6
7
8
9
# File 'lib/transbank/sdk/patpass/patpass_comercio/responses/inscription_start_response.rb', line 6

def initialize(json)
  self.token = json['token']
  self.url = json['url']
end

Instance Attribute Details

#tokenObject

Returns the value of attribute token.



5
6
7
# File 'lib/transbank/sdk/patpass/patpass_comercio/responses/inscription_start_response.rb', line 5

def token
  @token
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/transbank/sdk/patpass/patpass_comercio/responses/inscription_start_response.rb', line 5

def url
  @url
end