Class: FinchAPI::Resources::Account
- Inherits:
-
Object
- Object
- FinchAPI::Resources::Account
- Defined in:
- lib/finch_api/resources/account.rb
Instance Method Summary collapse
-
#disconnect(request_options: {}) ⇒ FinchAPI::DisconnectResponse
Disconnect one or more ‘access_token`s from your application.
-
#initialize(client:) ⇒ Account
constructor
private
A new instance of Account.
-
#introspect(request_options: {}) ⇒ FinchAPI::Introspection
Read account information associated with an ‘access_token`.
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.
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::DisconnectResponse
Disconnect one or more ‘access_token`s from your application.
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::Introspection
Read account information associated with an ‘access_token`
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 |