Exception: Howler::Message::Retry
- Defined in:
- lib/howler/exceptions/retry.rb
Instance Attribute Summary collapse
-
#at ⇒ Object
Returns the value of attribute at.
-
#ttl ⇒ Object
Returns the value of attribute ttl.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Retry
constructor
A new instance of Retry.
Methods inherited from Error
Constructor Details
#initialize(options = {}) ⇒ Retry
Returns a new instance of Retry.
5 6 7 8 9 10 |
# File 'lib/howler/exceptions/retry.rb', line 5 def initialize( = {}) @at = [:at] @at ||= Time.now.utc + ([:after] || 300) @ttl = (Time.now.utc + [:ttl]) if [:ttl] @ttl ||= 0 end |
Instance Attribute Details
#at ⇒ Object
Returns the value of attribute at.
3 4 5 |
# File 'lib/howler/exceptions/retry.rb', line 3 def at @at end |
#ttl ⇒ Object
Returns the value of attribute ttl.
3 4 5 |
# File 'lib/howler/exceptions/retry.rb', line 3 def ttl @ttl end |