Class: GustoApi::OauthRequest

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

Instance Method Summary collapse

Methods inherited from Request

#submit

Constructor Details

#initialize(method:, params: {}) ⇒ OauthRequest

Returns a new instance of OauthRequest.



3
4
5
6
7
8
9
10
11
# File 'lib/gusto_api/oauth_request.rb', line 3

def initialize(method:, params: {})
  super(
    endpoint: 'oauth/token',
    method: method,
    params: params,
    auth_token: nil,
    auth_type: nil
  )
end