Exception: SuperPDP::RateLimitError

Inherits:
APIError show all
Defined in:
lib/super_pdp/error.rb

Overview

429

Instance Attribute Summary collapse

Attributes inherited from APIError

#body, #status

Instance Method Summary collapse

Constructor Details

#initialize(status, body, retry_after = nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



29
30
31
32
# File 'lib/super_pdp/error.rb', line 29

def initialize(status, body, retry_after = nil)
  @retry_after = retry_after
  super(status, body)
end

Instance Attribute Details

#retry_afterObject (readonly)

integer seconds from Retry-After, or nil



27
28
29
# File 'lib/super_pdp/error.rb', line 27

def retry_after
  @retry_after
end