Exception: Browserbeam::RateLimitError

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

Instance Attribute Summary collapse

Attributes inherited from Error

#code, #context, #request_id, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message, retry_after: nil, **kwargs) ⇒ RateLimitError

Returns a new instance of RateLimitError.



21
22
23
24
# File 'lib/browserbeam/errors.rb', line 21

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



19
20
21
# File 'lib/browserbeam/errors.rb', line 19

def retry_after
  @retry_after
end