Exception: Prorate::Throttled

Inherits:
StandardError
  • Object
show all
Defined in:
lib/prorate/throttled.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_secondsObject (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