Exception: PushPay::RateLimitError

Inherits:
APIError show all
Defined in:
lib/pushpay/errors.rb

Instance Attribute Summary collapse

Attributes inherited from APIError

#response_body, #status_code

Instance Method Summary collapse

Constructor Details

#initialize(message = "Rate limit exceeded", status_code = 429, response_body = nil, retry_after = nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



46
47
48
49
# File 'lib/pushpay/errors.rb', line 46

def initialize(message = "Rate limit exceeded", status_code = 429, response_body = nil, retry_after = nil)
  super(message, status_code, response_body)
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



44
45
46
# File 'lib/pushpay/errors.rb', line 44

def retry_after
  @retry_after
end