Exception: Blueticks::Errors::RateLimitError

Inherits:
BluetickError
  • Object
show all
Defined in:
lib/blueticks/errors.rb

Overview

429 — the client is being throttled.

Instance Attribute Summary collapse

Attributes inherited from BluetickError

#code, #request_id, #response, #status_code

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of RateLimitError.



40
41
42
43
# File 'lib/blueticks/errors.rb', line 40

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

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



38
39
40
# File 'lib/blueticks/errors.rb', line 38

def retry_after
  @retry_after
end