Class: LogStruct::Log::ActiveJob::BaseFields

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/log_struct/log/active_job.rb

Constant Summary collapse

Kwargs =
T.type_alias do
  {
    job_id: String,
    job_class: String,
    queue_name: T.nilable(Symbol),
    arguments: T.nilable(T::Array[T.untyped]),
    executions: T.nilable(Integer),
    provider_job_id: T.nilable(String)
  }
end

Instance Method Summary collapse

Instance Method Details

#to_kwargsObject



38
39
40
41
42
43
44
45
46
47
# File 'lib/log_struct/log/active_job.rb', line 38

def to_kwargs
  {
    job_id: job_id,
    job_class: job_class,
    queue_name: queue_name,
    arguments: arguments,
    executions: executions,
    provider_job_id: provider_job_id
  }
end