Exception: Ecfr::Client::RetryAfter

Inherits:
Error
  • Object
show all
Defined in:
lib/ecfr/client.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#record

Instance Method Summary collapse

Constructor Details

#initialize(record = nil, message = "", delay: nil) ⇒ RetryAfter

Returns a new instance of RetryAfter.



35
36
37
38
# File 'lib/ecfr/client.rb', line 35

def initialize(record = nil, message = "", delay: nil)
  @delay = delay.to_i
  super(record, message)
end

Instance Attribute Details

#delayObject (readonly)

Returns the value of attribute delay.



33
34
35
# File 'lib/ecfr/client.rb', line 33

def delay
  @delay
end