Class: RailsBand::ActiveJob::Event::Resume
- Inherits:
-
BaseEvent
- Object
- BaseEvent
- RailsBand::ActiveJob::Event::Resume
show all
- Defined in:
- lib/rails_band/active_job/event/resume.rb
Overview
A wrapper for the event that is passed to resume.active_job.
Instance Attribute Summary
Attributes inherited from BaseEvent
#allocations, #cpu_time, #duration, #end, #idle_time, #name, #time, #transaction_id
Instance Method Summary
collapse
Methods inherited from BaseEvent
#initialize, #slice, #to_h
Instance Method Details
#adapter ⇒ Object
8
9
10
|
# File 'lib/rails_band/active_job/event/resume.rb', line 8
def adapter
@adapter ||= @event.payload.fetch(:adapter)
end
|
#completed_steps ⇒ Object
20
21
22
|
# File 'lib/rails_band/active_job/event/resume.rb', line 20
def completed_steps
@completed_steps ||= @event.payload.fetch(:completed_steps)
end
|
#current_step ⇒ Object
24
25
26
|
# File 'lib/rails_band/active_job/event/resume.rb', line 24
def current_step
@current_step ||= @event.payload[:current_step]
end
|
#description ⇒ Object
16
17
18
|
# File 'lib/rails_band/active_job/event/resume.rb', line 16
def description
@description ||= @event.payload.fetch(:description)
end
|
#job ⇒ Object
12
13
14
|
# File 'lib/rails_band/active_job/event/resume.rb', line 12
def job
@job ||= @event.payload.fetch(:job)
end
|