Class: Gusto::SystemAccessTokenAuth

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

Overview

Authentication configuration for system access token

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, client_id:, client_secret:) ⇒ SystemAccessTokenAuth

Returns a new instance of SystemAccessTokenAuth.

Parameters:

  • type (Symbol)

    The type of authentication, should be :system_access_token

  • client_id (String)

    The client ID for system access token authentication

  • client_secret (String)

    The client secret for system access token authentication



17
18
19
20
21
# File 'lib/fern_gusto.rb', line 17

def initialize(type:, client_id:, client_secret:)
  @type = type
  @client_id = client_id
  @client_secret = client_secret
end

Instance Attribute Details

#client_idString

Returns The client ID for system access token authentication.

Returns:

  • (String)

    The client ID for system access token authentication



10
11
12
# File 'lib/fern_gusto.rb', line 10

def client_id
  @client_id
end

#client_secretString

Returns The client secret for system access token authentication.

Returns:

  • (String)

    The client secret for system access token authentication



12
13
14
# File 'lib/fern_gusto.rb', line 12

def client_secret
  @client_secret
end

#typeSymbol

Returns The type of authentication, always :system_access_token.

Returns:

  • (Symbol)

    The type of authentication, always :system_access_token



8
9
10
# File 'lib/fern_gusto.rb', line 8

def type
  @type
end