Exception: HaveIBeenPwned::RateLimitError

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



17
18
19
20
# File 'lib/haveibeenpwned/errors.rb', line 17

def initialize(message, retry_after: nil)
  super(message)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



15
16
17
# File 'lib/haveibeenpwned/errors.rb', line 15

def retry_after
  @retry_after
end