Exception: Prorate::Throttled
- Inherits:
-
StandardError
- Object
- StandardError
- Prorate::Throttled
- Defined in:
- lib/prorate/throttle.rb
Instance Attribute Summary collapse
-
#retry_in_seconds ⇒ Object
readonly
Returns the value of attribute retry_in_seconds.
Instance Method Summary collapse
-
#initialize(try_again_in) ⇒ Throttled
constructor
A new instance of Throttled.
Constructor Details
#initialize(try_again_in) ⇒ Throttled
Returns a new instance of Throttled.
6 7 8 9 |
# File 'lib/prorate/throttle.rb', line 6 def initialize(try_again_in) @retry_in_seconds = try_again_in super("Throttled, please lower your temper and try again in #{retry_in_seconds} seconds") end |
Instance Attribute Details
#retry_in_seconds ⇒ Object (readonly)
Returns the value of attribute retry_in_seconds.
5 6 7 |
# File 'lib/prorate/throttle.rb', line 5 def retry_in_seconds @retry_in_seconds end |