Exception: Buzz::RateLimitError
- Defined in:
- lib/buzz/error.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, status: nil, body: nil, retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message = nil, status: nil, body: nil, retry_after: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
18 19 20 21 |
# File 'lib/buzz/error.rb', line 18 def initialize( = nil, status: nil, body: nil, retry_after: nil) @retry_after = retry_after super(, status: status, body: body) end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
16 17 18 |
# File 'lib/buzz/error.rb', line 16 def retry_after @retry_after end |