Exception: Jikanrb::RateLimitError
- Inherits:
-
ClientError
- Object
- StandardError
- Error
- ClientError
- Jikanrb::RateLimitError
- Defined in:
- lib/jikanrb/errors.rb
Overview
429 - Rate Limit Exceeded
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, response: nil, status: nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, response: nil, status: nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
34 35 36 37 |
# File 'lib/jikanrb/errors.rb', line 34 def initialize( = nil, response: nil, status: nil, retry_after: nil) @retry_after = retry_after super(, response: response, status: status) end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
32 33 34 |
# File 'lib/jikanrb/errors.rb', line 32 def retry_after @retry_after end |