Exception: Acme::Client::Error::RateLimited

Inherits:
ServerError show all
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

ACME_ERRORS

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = DEFAULT_MESSAGE, retry_after = 10)
  super(message)
  @retry_after = retry_after.nil? ? 10 : retry_after.to_i
end

Instance Attribute Details

#retry_afterObject (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