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.



38
39
40
41
# File 'lib/mobiscroll/connect/errors.rb', line 38

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.



36
37
38
# File 'lib/mobiscroll/connect/errors.rb', line 36

def retry_after
  @retry_after
end