Exception: Ecfr::Client::RetryAfter
- Defined in:
- lib/ecfr/client.rb
Instance Attribute Summary collapse
-
#delay ⇒ Object
readonly
Returns the value of attribute delay.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(record = nil, message = "", delay: nil) ⇒ RetryAfter
constructor
A new instance of RetryAfter.
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, = "", delay: nil) @delay = delay.to_i super(record, ) end |
Instance Attribute Details
#delay ⇒ Object (readonly)
Returns the value of attribute delay.
33 34 35 |
# File 'lib/ecfr/client.rb', line 33 def delay @delay end |