Class: Worldline::Acquiring::SDK::Authentication::OAuth2Authenticator::AccessToken
- Inherits:
-
Object
- Object
- Worldline::Acquiring::SDK::Authentication::OAuth2Authenticator::AccessToken
- Defined in:
- lib/worldline/acquiring/sdk/authentication/oauth2_authenticator.rb
Instance Attribute Summary collapse
-
#expiration ⇒ Object
readonly
Returns the value of attribute expiration.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token, expiration) ⇒ AccessToken
constructor
A new instance of AccessToken.
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
#expiration ⇒ Object (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 |
#token ⇒ Object (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 |