Class: Hcp::TooManyRequests
- Defined in:
- lib/hcp/errors/too_many_requests.rb
Overview
Raised where Housecall Pro refuses a request for rate.
Instance Attribute Summary collapse
-
#reset_at ⇒ Time?
readonly
Nothing here sleeps: a caller with a queue can bring the whole job back, which is worth more than a worker asleep holding a connection open.
Instance Method Summary collapse
-
#initialize(message, reset_at) ⇒ TooManyRequests
constructor
A new instance of TooManyRequests.
Constructor Details
#initialize(message, reset_at) ⇒ TooManyRequests
Returns a new instance of TooManyRequests.
6 7 8 9 |
# File 'lib/hcp/errors/too_many_requests.rb', line 6 def initialize(, reset_at) super @reset_at = reset_at end |
Instance Attribute Details
#reset_at ⇒ Time? (readonly)
Nothing here sleeps: a caller with a queue can bring the whole job back, which is worth more than a worker asleep holding a connection open.
14 15 16 |
# File 'lib/hcp/errors/too_many_requests.rb', line 14 def reset_at @reset_at end |