Class: Gusto::TokenAuth

Inherits:
Object
  • Object
show all
Defined in:
lib/fern_gusto.rb

Overview

Authentication configuration for token authentication

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, token:) ⇒ TokenAuth

Returns a new instance of TokenAuth.

Parameters:

  • type (Symbol)

    The type of authentication, should be :token

  • token (String)

    The token for token authentication



64
65
66
67
# File 'lib/fern_gusto.rb', line 64

def initialize(type:, token:)
  @type = type
  @token = token
end

Instance Attribute Details

#tokenString

Returns The token for token authentication.

Returns:

  • (String)

    The token for token authentication



60
61
62
# File 'lib/fern_gusto.rb', line 60

def token
  @token
end

#typeSymbol

Returns The type of authentication, always :token.

Returns:

  • (Symbol)

    The type of authentication, always :token



58
59
60
# File 'lib/fern_gusto.rb', line 58

def type
  @type
end