Class: Tomba::Logs
Overview
Logs service for retrieving API request logs.
Provides methods to get the history of API requests.
Instance Method Summary collapse
-
#get_logs(page: nil, limit: nil) ⇒ Hash
Get Logs.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Tomba::Service
Instance Method Details
#get_logs(page: nil, limit: nil) ⇒ Hash
Get Logs
Returns the log history of API requests.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/tomba/services/logs.rb', line 19 def get_logs(page: nil, limit: nil) path = '/logs' params = {} params[:page] = page unless page.nil? params[:limit] = limit unless limit.nil? @client.call('get', path, { 'content-type' => 'application/json' }, params) end |