Exception: Prorate::Throttled

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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