Exception: Pluggy::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/pluggy/errors.rb

Instance Attribute Summary

Attributes inherited from Error

#api_message, #code, #code_description, #data, #http_body, #http_headers, #http_status, #json_body

Instance Method Summary collapse

Methods inherited from Error

#initialize, #to_s

Constructor Details

This class inherits a constructor from Pluggy::Error

Instance Method Details

#retry_afterObject

Undocumented in the spec, so read it opportunistically and never depend on it. GET /accounts/id/balance is the endpoint that documents a 429, and that limit belongs to the financial institution, not to Pluggy.



95
96
97
98
# File 'lib/pluggy/errors.rb', line 95

def retry_after
  value = http_headers["retry-after"]
  value&.to_i
end