Exception: Howler::Message::Retry

Inherits:
Error
  • Object
show all
Defined in:
lib/howler/exceptions/retry.rb

Instance Attribute Summary collapse

Attributes inherited from Error

#message

Instance Method Summary collapse

Methods inherited from Error

#info

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(options = {})
  @at = options[:at]
  @at ||= Time.now.utc + (options[:after] || 300)
  @ttl = (Time.now.utc + options[:ttl]) if options[:ttl]
  @ttl ||= 0
end

Instance Attribute Details

#atObject

Returns the value of attribute at.



3
4
5
# File 'lib/howler/exceptions/retry.rb', line 3

def at
  @at
end

#ttlObject

Returns the value of attribute ttl.



3
4
5
# File 'lib/howler/exceptions/retry.rb', line 3

def ttl
  @ttl
end