Class: GustoApi::TokenRequest

Inherits:
Request
  • Object
show all
Defined in:
lib/gusto_api/token_request.rb

Instance Method Summary collapse

Methods inherited from Request

#submit

Constructor Details

#initialize(endpoint:, method:, params: {}) ⇒ TokenRequest

Returns a new instance of TokenRequest.



3
4
5
# File 'lib/gusto_api/token_request.rb', line 3

def initialize(endpoint:, method:, params: {})
  super(endpoint: endpoint, method: method, params: params, auth_token: GustoApi.configuration.api_token, auth_type: 'Token')
end