Exception: Muxi::RateLimitError
- Defined in:
- lib/muxi/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from MuxiError
Instance Method Summary collapse
-
#initialize(message, status_code, retry_after: nil, details: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, status_code, retry_after: nil, details: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
24 25 26 27 |
# File 'lib/muxi/errors.rb', line 24 def initialize(, status_code, retry_after: nil, details: nil) super("RATE_LIMITED", , status_code, details) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
22 23 24 |
# File 'lib/muxi/errors.rb', line 22 def retry_after @retry_after end |