Class: StatelyDB::Common::Auth::AuthTokenProvider::TokenState

Inherits:
Object
  • Object
show all
Defined in:
lib/common/auth/auth_token_provider.rb

Overview

Persistent state for the token provider

Instance Attribute Summary collapse

Instance Method Summary collapse

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_secsObject (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

#tokenObject (readonly)

Returns the value of attribute token.



191
192
193
# File 'lib/common/auth/auth_token_provider.rb', line 191

def token
  @token
end