Exception: DiscordRDA::RestClient::RateLimitedError
- Defined in:
- lib/discord_rda/connection/rest_client.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from APIError
#code, #data, #message, #status
Instance Method Summary collapse
-
#initialize(status, data) ⇒ RateLimitedError
constructor
A new instance of RateLimitedError.
Constructor Details
#initialize(status, data) ⇒ RateLimitedError
Returns a new instance of RateLimitedError.
309 310 311 312 |
# File 'lib/discord_rda/connection/rest_client.rb', line 309 def initialize(status, data) super @retry_after = data['retry_after'] || 1.0 end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
307 308 309 |
# File 'lib/discord_rda/connection/rest_client.rb', line 307 def retry_after @retry_after end |