Exception: Clicksign::RateLimitError

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

Instance Attribute Summary

Attributes inherited from Error

#request_id, #response_body, #response_headers, #status_code

Instance Method Summary collapse

Methods inherited from Error

#initialize

Constructor Details

This class inherits a constructor from Clicksign::Error

Instance Method Details

#rate_limit_remainingObject



31
32
33
# File 'lib/clicksign/errors.rb', line 31

def rate_limit_remaining
  response_headers['x-ratelimit-remaining']&.to_i
end

#rate_limit_resetObject



35
36
37
# File 'lib/clicksign/errors.rb', line 35

def rate_limit_reset
  response_headers['x-ratelimit-reset']
end

#retryable?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/clicksign/errors.rb', line 27

def retryable?
  true
end