Exception: LoopsSdk::RateLimitError
- Inherits:
-
StandardError
- Object
- StandardError
- LoopsSdk::RateLimitError
- Defined in:
- lib/loops_sdk/base.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#remaining ⇒ Object
readonly
Returns the value of attribute remaining.
Instance Method Summary collapse
-
#initialize(limit, remaining) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
Constructor Details
#initialize(limit, remaining) ⇒ RateLimitError
Returns a new instance of RateLimitError.
35 36 37 38 39 |
# File 'lib/loops_sdk/base.rb', line 35 def initialize(limit, remaining) @limit = limit @remaining = remaining super("Rate limit of #{limit} requests per second exceeded.") end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
33 34 35 |
# File 'lib/loops_sdk/base.rb', line 33 def limit @limit end |
#remaining ⇒ Object (readonly)
Returns the value of attribute remaining.
33 34 35 |
# File 'lib/loops_sdk/base.rb', line 33 def remaining @remaining end |