Class: Worldline::Acquiring::SDK::Authentication::OAuth2Authenticator::AccessToken

Inherits:
Object
  • Object
show all
Defined in:
lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(token, expiration) ⇒ AccessToken

Returns a new instance of AccessToken.



29
30
31
32
# File 'lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb', line 29

def initialize(token, expiration)
  @token = token
  @expiration = expiration
end

Instance Attribute Details

#expirationObject (readonly)

Returns the value of attribute expiration.



35
36
37
# File 'lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb', line 35

def expiration
  @expiration
end

#tokenObject (readonly)

Returns the value of attribute token.



34
35
36
# File 'lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb', line 34

def token
  @token
end