Exception: Mobiscroll::Connect::RateLimitError

Inherits:
Error
  • Object
show all
Defined in:
lib/mobiscroll/connect/errors.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#code

Instance Method Summary collapse

Constructor Details

#initialize(message = 'Rate limit exceeded', retry_after: nil) ⇒ RateLimitError

Returns a new instance of RateLimitError.



57
58
59
60
# File 'lib/mobiscroll/connect/errors.rb', line 57

def initialize(message = 'Rate limit exceeded', retry_after: nil)
  super(message, code: 'RATE_LIMIT_ERROR')
  @retry_after = retry_after
end

Instance Attribute Details

#retry_afterObject (readonly)

Returns the value of attribute retry_after.



55
56
57
# File 'lib/mobiscroll/connect/errors.rb', line 55

def retry_after
  @retry_after
end