Class: Tomba::Account

Inherits:
Service show all
Defined in:
lib/tomba/services/account.rb

Overview

Account service for retrieving account information.

Provides methods to get the current account details.

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Tomba::Service

Instance Method Details

#get_accountHash

Get Account

Returns information about the current account.

Returns:

  • (Hash)

    API response containing account details

Raises:

See Also:



17
18
19
20
21
22
23
24
25
# File 'lib/tomba/services/account.rb', line 17

def 
  path = '/me'

  params = {}

  @client.call('get', path, {
                 'content-type' => 'application/json'
               }, params)
end