Class: JetEmail::Error::RateLimitError
- Inherits:
-
ClientError
- Object
- JetEmail::Error::RateLimitError
- Defined in:
- lib/jetemail/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(msg, code = nil, headers = {}) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(msg, code = nil, headers = {}) ⇒ RateLimitError
Returns a new instance of RateLimitError.
13 14 15 16 |
# File 'lib/jetemail/errors.rb', line 13 def initialize(msg, code = nil, headers = {}) super(msg, code, headers) @retry_after = headers["retry-after"]&.to_i end |
Instance Attribute Details
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
11 12 13 |
# File 'lib/jetemail/errors.rb', line 11 def retry_after @retry_after end |