Class: AgentsControl::Channels::Telegram::Api::TooManyRequests
- Defined in:
- lib/agents_control/channels/telegram/api.rb
Overview
Too many requests. The response carries retry_after — how long to wait.
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(message, retry_after) ⇒ TooManyRequests
constructor
A new instance of TooManyRequests.
Constructor Details
#initialize(message, retry_after) ⇒ TooManyRequests
Returns a new instance of TooManyRequests.
39 40 41 42 |
# File 'lib/agents_control/channels/telegram/api.rb', line 39 def initialize(, retry_after) super() @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
37 38 39 |
# File 'lib/agents_control/channels/telegram/api.rb', line 37 def retry_after @retry_after end |