Class: Tomba::Usage

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

Overview

Usage service for retrieving API usage statistics.

Provides methods to get account usage information.

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from Tomba::Service

Instance Method Details

#get_usageHash

Get Usage

Returns the current API usage statistics for the account.

Returns:

  • (Hash)

    API response containing usage statistics

Raises:

See Also:



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

def get_usage
  path = '/usage'

  params = {}

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