Class: StatelyDB::Common::Auth::AuthTokenProvider::TokenState
- Inherits:
-
Object
- Object
- StatelyDB::Common::Auth::AuthTokenProvider::TokenState
- Defined in:
- lib/common/auth/auth_token_provider.rb
Overview
Persistent state for the token provider
Instance Attribute Summary collapse
-
#expires_at_unix_secs ⇒ Object
readonly
Returns the value of attribute expires_at_unix_secs.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(token:, expires_at_unix_secs:) ⇒ TokenState
constructor
Create a new TokenState.
Constructor Details
#initialize(token:, expires_at_unix_secs:) ⇒ TokenState
Create a new TokenState
196 197 198 199 |
# File 'lib/common/auth/auth_token_provider.rb', line 196 def initialize(token:, expires_at_unix_secs:) @token = token @expires_at_unix_secs = expires_at_unix_secs end |
Instance Attribute Details
#expires_at_unix_secs ⇒ Object (readonly)
Returns the value of attribute expires_at_unix_secs.
191 192 193 |
# File 'lib/common/auth/auth_token_provider.rb', line 191 def expires_at_unix_secs @expires_at_unix_secs end |
#token ⇒ Object (readonly)
Returns the value of attribute token.
191 192 193 |
# File 'lib/common/auth/auth_token_provider.rb', line 191 def token @token end |