Exception: Jikanrb::RateLimitError

Inherits:
ClientError show all
Defined in:
lib/jikanrb/errors.rb

Overview

429 - Rate Limit Exceeded

Instance Attribute Summary collapse

Attributes inherited from Error

#response, #status

Instance Method Summary collapse

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(message = nil, response: nil, status: nil, retry_after: nil)
  @retry_after = retry_after
  super(message, response: response, status: status)
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



32
33
34
# File 'lib/jikanrb/errors.rb', line 32

def retry_after
  @retry_after
end