Exception: ResumableJob::ResumeLater

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/resumable_job/resume_later.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(state: {}, utc: nil, message:) ⇒ ResumeLater

Returns a new instance of ResumeLater.



3
4
5
6
7
8
# File 'lib/resumable_job/resume_later.rb', line 3

def initialize(state: {}, utc: nil, message:)
  self.state = state || {}
  self.utc = utc

  super message
end

Instance Attribute Details

#stateObject

Returns the value of attribute state.



10
11
12
# File 'lib/resumable_job/resume_later.rb', line 10

def state
  @state
end

#utcObject

Returns the value of attribute utc.



10
11
12
# File 'lib/resumable_job/resume_later.rb', line 10

def utc
  @utc
end