Exception: Zeridion::Flare::RateLimitError
- Inherits:
-
FlareError
- Object
- StandardError
- FlareError
- Zeridion::Flare::RateLimitError
- Defined in:
- lib/zeridion_flare/errors.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from FlareError
#code, #request_id, #status_code
Instance Method Summary collapse
-
#initialize(message, status_code:, code:, request_id:, limit:, remaining:, retry_after:) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, status_code:, code:, request_id:, limit:, remaining:, retry_after:) ⇒ RateLimitError
Returns a new instance of RateLimitError.
26 27 28 29 30 31 |
# File 'lib/zeridion_flare/errors.rb', line 26 def initialize(, status_code:, code:, request_id:, limit:, remaining:, retry_after:) super(, status_code: status_code, code: code, request_id: request_id) @limit = limit @remaining = remaining @retry_after = retry_after end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
24 25 26 |
# File 'lib/zeridion_flare/errors.rb', line 24 def limit @limit end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
24 25 26 |
# File 'lib/zeridion_flare/errors.rb', line 24 def remaining @remaining end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
24 25 26 |
# File 'lib/zeridion_flare/errors.rb', line 24 def retry_after @retry_after end |