Module: Revolut::Clients::Counterparties
- Included in:
- Revolut::Client
- Defined in:
- lib/revolut/clients/counterparties.rb
Overview
Revolut Accounts
Instance Method Summary collapse
-
#add_counterparty(params = {}) ⇒ Hash
Add Revolut Counterparty.
-
#counterparties ⇒ Hash
List counterparties.
-
#counterparty(id) ⇒ Hash
Get Counterparty.
-
#delete_counterparty(id) ⇒ Hash
Delete Counterparty.
Instance Method Details
#add_counterparty(params = {}) ⇒ Hash
Add Revolut Counterparty
32 33 34 |
# File 'lib/revolut/clients/counterparties.rb', line 32 def add_counterparty(params = {}) connection.post('counterparty', params) end |
#counterparties ⇒ Hash
List counterparties
12 13 14 |
# File 'lib/revolut/clients/counterparties.rb', line 12 def counterparties connection.get('counterparties') end |
#counterparty(id) ⇒ Hash
Get Counterparty
23 24 25 |
# File 'lib/revolut/clients/counterparties.rb', line 23 def counterparty(id) connection.get("counterparty/#{id}") end |
#delete_counterparty(id) ⇒ Hash
Delete Counterparty
43 44 45 |
# File 'lib/revolut/clients/counterparties.rb', line 43 def delete_counterparty(id) connection.delete("counterparty/#{id}") end |