Class: FinchAPI::Resources::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/finch_api/resources/account.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Account

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of Account.

Parameters:



45
46
47
# File 'lib/finch_api/resources/account.rb', line 45

def initialize(client:)
  @client = client
end

Instance Method Details

#disconnect(request_options: {}) ⇒ FinchAPI::Models::DisconnectResponse

Disconnect one or more ‘access_token`s from your application.

Parameters:

Returns:

See Also:



15
16
17
18
19
20
21
22
# File 'lib/finch_api/resources/account.rb', line 15

def disconnect(params = {})
  @client.request(
    method: :post,
    path: "disconnect",
    model: FinchAPI::DisconnectResponse,
    options: params[:request_options]
  )
end

#introspect(request_options: {}) ⇒ FinchAPI::Models::Introspection

Read account information associated with an ‘access_token`

Parameters:

Returns:

See Also:



33
34
35
36
37
38
39
40
# File 'lib/finch_api/resources/account.rb', line 33

def introspect(params = {})
  @client.request(
    method: :get,
    path: "introspect",
    model: FinchAPI::Introspection,
    options: params[:request_options]
  )
end