Exception: Strait::RateLimitExceeded

Inherits:
StandardError
  • Object
show all
Defined in:
lib/strait/rate_limit_exceeded.rb

Instance Method Summary collapse

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_sObject



10
11
12
# File 'lib/strait/rate_limit_exceeded.rb', line 10

def to_s
  "Rate Limit Exceeded: #{@count} per #{@period} seconds"
end