Exception: Brapi::RateLimitError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#raw_response, #response_body, #status

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, status: nil, response_body: nil, raw_response: nil, retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



26
27
28
29
# File 'lib/brapi/errors.rb', line 26

def initialize(message = nil, status: nil, response_body: nil, raw_response: nil, retry_after: nil)
  super(message, status: status, response_body: response_body, raw_response: raw_response)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



24
25
26
# File 'lib/brapi/errors.rb', line 24

def retry_after
  @retry_after
end