Exception: Strait::RateLimitExceeded
- Inherits:
-
StandardError
- Object
- StandardError
- Strait::RateLimitExceeded
- Defined in:
- lib/strait/rate_limit_exceeded.rb
Instance Method Summary collapse
-
#initialize(period:, count:, **_other) ⇒ RateLimitExceeded
constructor
A new instance of RateLimitExceeded.
- #to_s ⇒ Object
Constructor Details
#initialize(period:, count:, **_other) ⇒ RateLimitExceeded
Returns a new instance of RateLimitExceeded.
5 6 7 8 |
# File 'lib/strait/rate_limit_exceeded.rb', line 5 def initialize(period:, count:, **_other) @period = period @count = count end |
Instance Method Details
#to_s ⇒ Object
10 11 12 |
# File 'lib/strait/rate_limit_exceeded.rb', line 10 def to_s "Rate Limit Exceeded: #{@count} per #{@period} seconds" end |