Exception: AhoSdk::RateLimitError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/aho_sdk/http_client.rb

Instance Attribute Summary collapse

Attributes inherited from ApiError

#details, #error_code, #raw_body, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(body, status_code, request_id, retry_after) ⇒ RateLimitError

Returns a new instance of RateLimitError.



406
407
408
409
# File 'lib/aho_sdk/http_client.rb', line 406

def initialize(body, status_code, request_id, retry_after)
  super(body, status_code, request_id)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



404
405
406
# File 'lib/aho_sdk/http_client.rb', line 404

def retry_after
  @retry_after
end