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.
38 39 40 41 |
# File 'lib/mobiscroll/connect/errors.rb', line 38 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.
36 37 38 |
# File 'lib/mobiscroll/connect/errors.rb', line 36 def retry_after @retry_after end |