Exception: Mobiscroll::Connect::RateLimitError
- Defined in:
- lib/mobiscroll/connect/errors.rb
Instance Attribute Summary collapse
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = 'Rate limit exceeded', retry_after: nil) ⇒ RateLimitError
constructor
A new instance of RateLimitError.
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( = 'Rate limit exceeded', retry_after: nil) super(, code: 'RATE_LIMIT_ERROR') @retry_after = retry_after end |
Instance Attribute Details
#retry_after ⇒ Object (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 |