Exception: PushPay::RateLimitError
- Defined in:
- lib/pushpay/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from APIError
Instance Method Summary collapse
-
#initialize(message = "Rate limit exceeded", status_code = 429, response_body = nil, retry_after = nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = "Rate limit exceeded", status_code = 429, response_body = nil, retry_after = nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
46 47 48 49 |
# File 'lib/pushpay/errors.rb', line 46 def initialize( = "Rate limit exceeded", status_code = 429, response_body = nil, retry_after = nil) super(, status_code, response_body) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
44 45 46 |
# File 'lib/pushpay/errors.rb', line 44 def retry_after @retry_after end |