Class: LogStruct::Log::GoodJob::BaseFields

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

Constant Summary collapse

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

Instance Method Summary collapse

Instance Method Details

#to_kwargsObject



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

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