Class: RailsBand::ActiveJob::Event::StepStarted
- Defined in:
- lib/rails_band/active_job/event/step_started.rb
Overview
A wrapper for the event that is passed to step_started.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
Constructor Details
This class inherits a constructor from RailsBand::BaseEvent
Instance Method Details
#adapter ⇒ Object
8 9 10 |
# File 'lib/rails_band/active_job/event/step_started.rb', line 8 def adapter @adapter ||= @event.payload.fetch(:adapter) end |
#job ⇒ Object
12 13 14 |
# File 'lib/rails_band/active_job/event/step_started.rb', line 12 def job @job ||= @event.payload.fetch(:job) end |
#step ⇒ Object
16 17 18 |
# File 'lib/rails_band/active_job/event/step_started.rb', line 16 def step @step ||= @event.payload.fetch(:step) end |