Exception: Slk::RateLimitError
- Defined in:
- lib/slk.rb
Overview
Slack rate-limit error. Carries Retry-After in seconds when present.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from ApiError
Instance Method Summary collapse
-
#initialize(message, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
37 38 39 40 |
# File 'lib/slk.rb', line 37 def initialize(, retry_after: nil) super(, code: :ratelimited) @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
35 36 37 |
# File 'lib/slk.rb', line 35 def retry_after @retry_after end |