Exception: Verity::RateLimitError
- Defined in:
- lib/verity/errors.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
-
#reset ⇒ Object
readonly
Returns the value of attribute reset.
Attributes inherited from APIError
Instance Method Summary collapse
-
#initialize(message, code: nil, details: nil, limit: nil, remaining: nil, reset: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(message, code: nil, details: nil, limit: nil, remaining: nil, reset: nil) ⇒ RateLimitError
Returns a new instance of RateLimitError.
36 37 38 39 40 41 |
# File 'lib/verity/errors.rb', line 36 def initialize(, code: nil, details: nil, limit: nil, remaining: nil, reset: nil) super(, code: code, details: details, status_code: 429) @limit = limit @remaining = remaining @reset = reset end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
34 35 36 |
# File 'lib/verity/errors.rb', line 34 def limit @limit end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
34 35 36 |
# File 'lib/verity/errors.rb', line 34 def remaining @remaining end |
#reset ⇒ Object (readonly)
Returns the value of attribute reset.
34 35 36 |
# File 'lib/verity/errors.rb', line 34 def reset @reset end |