xero-ruby icon indicating copy to clipboard operation
xero-ruby copied to clipboard

Surface limits to client

Open mozcomp opened this issue 3 years ago • 0 comments

I know I can access the limit attributes in the response headers if I use the _with_http_info, however, it would be nice to be able to access them as client attributes after a request.

Something like ...

xero_client = XeroRuby::ApiClient.new(credentials: CREDENTIALS)
@invoices = xero_client.accounting_api.get_invoices('').invoices
puts xero_client.daylimit_remaining
=> 4940
puts xero_client.minlimit_remaining
=> 58

mozcomp avatar Dec 23 '21 11:12 mozcomp