Exception: Hitch::RateLimitStore::Exceeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/hitch/rate_limit_store.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(retry_after) ⇒ Exceeded

Returns a new instance of Exceeded.



18
19
20
21
# File 'lib/hitch/rate_limit_store.rb', line 18

def initialize(retry_after)
  @retry_after = retry_after
  super("rate limit exceeded")
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



16
17
18
# File 'lib/hitch/rate_limit_store.rb', line 16

def retry_after
  @retry_after
end