Exception: Shai::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/shai.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = "Too many requests", retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



28
29
30
31
# File 'lib/shai.rb', line 28

def initialize(message = "Too many requests", retry_after: nil)
  @retry_after = retry_after
  super(message)
end

Instance Attribute Details

#retry_after ⇒ Object (readonly)

Returns the value of attribute retry_after.



26
27
28
# File 'lib/shai.rb', line 26

def retry_after
  @retry_after
end