class SolidusShipstation::Api::RateLimitedError

Attributes

retry_in[R]

Public Class Methods

new(retry_in:, **options) click to toggle source
Calls superclass method
# File lib/solidus_shipstation/api/rate_limited_error.rb, line 16
def initialize(retry_in:, **options)
  super(**options)

  @retry_in = retry_in
end
options_from_response(response) click to toggle source
Calls superclass method
# File lib/solidus_shipstation/api/rate_limited_error.rb, line 9
def options_from_response(response)
  super.merge(
    retry_in: response.headers['X-Rate-Limit-Reset'].to_i.seconds,
  )
end