Exception: Prorate::Throttled
- Inherits:
-
StandardError
- Object
- StandardError
- Prorate::Throttled
- Defined in:
- lib/prorate/throttled.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.
4 5 6 7 |
# File 'lib/prorate/throttled.rb', line 4 def initialize(try_again_in) @retry_in_seconds = try_again_in super("Throttled, please lower your temper and try again in %d seconds" % try_again_in) end |
Instance Attribute Details
#retry_in_seconds ⇒ Object (readonly)
Returns the value of attribute retry_in_seconds.
3 4 5 |
# File 'lib/prorate/throttled.rb', line 3 def retry_in_seconds @retry_in_seconds end |