Exception: Acme::Client::Error::RateLimited
- Inherits:
-
ServerError
- Object
- StandardError
- Acme::Client::Error
- ServerError
- Acme::Client::Error::RateLimited
- Defined in:
- lib/acme/client/error.rb,
lib/acme/client/error/rate_limited.rb
Constant Summary collapse
- DEFAULT_MESSAGE =
'Error message: urn:ietf:params:acme:error:rateLimited'
Constants inherited from Acme::Client::Error
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(message = DEFAULT_MESSAGE, retry_after = 10) ⇒ RateLimited
constructor
A new instance of RateLimited.
Constructor Details
#initialize(message = DEFAULT_MESSAGE, retry_after = 10) ⇒ RateLimited
Returns a new instance of RateLimited.
6 7 8 9 |
# File 'lib/acme/client/error/rate_limited.rb', line 6 def initialize( = DEFAULT_MESSAGE, retry_after = 10) super() @retry_after = retry_after.nil? ? 10 : retry_after.to_i end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
2 3 4 |
# File 'lib/acme/client/error/rate_limited.rb', line 2 def retry_after @retry_after end |