Module: Revolut::Clients::Accounts

Included in:
Revolut::Client
Defined in:
lib/revolut/clients/accounts.rb

Overview

Revolut Accounts

Instance Method Summary collapse

Instance Method Details

#account(id) ⇒ Hash

Get account information.

Parameters:

  • id (UUID)

    Id of account.

Returns:

  • (Hash)

    Response from API.

See Also:



23
24
25
# File 'lib/revolut/clients/accounts.rb', line 23

def (id)
  connection.get("accounts/#{id}")
end

#account_details(id) ⇒ Hash

Get account bank details.

Parameters:

  • id (UUID)

    Id of account.

Returns:

  • (Hash)

    Response from API.

See Also:



34
35
36
# File 'lib/revolut/clients/accounts.rb', line 34

def (id)
  connection.get("accounts/#{id}/bank-details")
end

#accountsHash

Get accounts list.

Returns:

  • (Hash)

    Response from API.

See Also:



12
13
14
# File 'lib/revolut/clients/accounts.rb', line 12

def accounts
  connection.get('accounts')
end