Class: Gusto::TokenAuth
- Inherits:
-
Object
- Object
- Gusto::TokenAuth
- Defined in:
- lib/fern_gusto.rb
Overview
Authentication configuration for token authentication
Instance Attribute Summary collapse
-
#token ⇒ String
The token for token authentication.
-
#type ⇒ Symbol
The type of authentication, always :token.
Instance Method Summary collapse
-
#initialize(type:, token:) ⇒ TokenAuth
constructor
A new instance of TokenAuth.
Constructor Details
#initialize(type:, token:) ⇒ TokenAuth
Returns a new instance of TokenAuth.
64 65 66 67 |
# File 'lib/fern_gusto.rb', line 64 def initialize(type:, token:) @type = type @token = token end |
Instance Attribute Details
#token ⇒ String
Returns The token for token authentication.
60 61 62 |
# File 'lib/fern_gusto.rb', line 60 def token @token end |
#type ⇒ Symbol
Returns The type of authentication, always :token.
58 59 60 |
# File 'lib/fern_gusto.rb', line 58 def type @type end |