Exception: Millrace::RateLimited
- Inherits:
-
StandardError
- Object
- StandardError
- Millrace::RateLimited
- Defined in:
- lib/millrace/rate_limited.rb
Instance Attribute Summary collapse
-
#limit_name ⇒ Object
readonly
Returns the value of attribute limit_name.
-
#retry_after ⇒ Object
readonly
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(limit_name:, retry_after:) ⇒ RateLimited
constructor
A new instance of RateLimited.
Constructor Details
#initialize(limit_name:, retry_after:) ⇒ RateLimited
Returns a new instance of RateLimited.
3 4 5 6 |
# File 'lib/millrace/rate_limited.rb', line 3 def initialize(limit_name:, retry_after:) @limit_name = limit_name @retry_after = retry_after end |
Instance Attribute Details
#limit_name ⇒ Object (readonly)
Returns the value of attribute limit_name.
8 9 10 |
# File 'lib/millrace/rate_limited.rb', line 8 def limit_name @limit_name end |
#retry_after ⇒ Object (readonly)
Returns the value of attribute retry_after.
8 9 10 |
# File 'lib/millrace/rate_limited.rb', line 8 def retry_after @retry_after end |