lib/rails_band/active_job/event/perform_start.rb



# frozen_string_literal: true

module RailsBand
  module ActiveJob
    module Event
      # A wrapper for the event that is passed to `perform_start.active_job`.
      class PerformStart < BaseEvent
        def adapter
          @adapter ||= @event.payload.fetch(:adapter)
        end

        def job
          @job ||= @event.payload.fetch(:job)
        end
      end
    end
  end
end