salsify/delayed_job_worker_pool

View on GitHub
lib/delayed_job_worker_pool/worker_info.rb

Summary

Maintainability
A
0 mins
Test Coverage
# frozen_string_literal: true

module DelayedJobWorkerPool
  class WorkerInfo
    attr_reader :process_id, :name, :worker_group

    def initialize(attributes)
      @process_id = attributes.fetch(:process_id)
      @name = attributes.fetch(:name)
      @worker_group = attributes.fetch(:worker_group)
    end
  end
end