Class: Seam::Clients::ConnectedAccounts
- Inherits:
-
BaseClient
- Object
- BaseClient
- Seam::Clients::ConnectedAccounts
- Defined in:
- lib/seam/clients/connected_accounts.rb
Instance Attribute Summary
Attributes inherited from BaseClient
Instance Method Summary collapse
Methods inherited from BaseClient
#initialize, #request_seam, #request_seam_object
Constructor Details
This class inherits a constructor from Seam::Clients::BaseClient
Instance Method Details
#get(connected_account_id_or_body) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/seam/clients/connected_accounts.rb', line 6 def get(connected_account_id_or_body) body = if connected_account_id_or_body.is_a?(String) {connected_account_id: connected_account_id_or_body} else connected_account_id_or_body end request_seam_object( :post, "/connected_accounts/get", Seam::ConnectedAccount, "connected_account", body: body ) end |
#list(body = {}) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/seam/clients/connected_accounts.rb', line 22 def list(body = {}) request_seam_object( :post, "/connected_accounts/list", Seam::ConnectedAccount, "connected_accounts", body: body ) end |