Class: LogStruct::Log::GoodJob::BaseFields
- Inherits:
-
T::Struct
- Object
- T::Struct
- LogStruct::Log::GoodJob::BaseFields
- 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 Attribute Summary collapse
-
#arguments ⇒ Array<T.untyped>?
readonly
Returns the value of prop
arguments. -
#executions ⇒ Integer?
readonly
Returns the value of prop
executions. -
#job_class ⇒ String?
readonly
Returns the value of prop
job_class. -
#job_id ⇒ String?
readonly
Returns the value of prop
job_id. -
#queue_name ⇒ Symbol?
readonly
Returns the value of prop
queue_name.
Instance Method Summary collapse
- #initialize(job_id: nil, job_class: nil, queue_name: nil, arguments: nil, executions: nil) ⇒ void constructor
- #to_kwargs ⇒ Kwargs
Constructor Details
#initialize(job_id: nil, job_class: nil, queue_name: nil, arguments: nil, executions: nil) ⇒ void
|
|
# File '' const :job_id, T.nilable(String), default: nil const :job_class, T.nilable(String), default: nil const :queue_name, T.nilable(Symbol), default: nil const :arguments, T.nilable(T::Array[T.untyped]), default: nil const :executions, T.nilable(Integer), default: nil |
Instance Attribute Details
#arguments ⇒ Array<T.untyped>? (readonly)
Returns the value of prop arguments.
|
|
# File '' const :arguments, T.nilable(T::Array[T.untyped]), default: nil |
#executions ⇒ Integer? (readonly)
Returns the value of prop executions.
|
|
# File '' const :executions, T.nilable(Integer), default: nil |
#job_class ⇒ String? (readonly)
Returns the value of prop job_class.
|
|
# File '' const :job_class, T.nilable(String), default: nil |
#job_id ⇒ String? (readonly)
Returns the value of prop job_id.
|
|
# File '' const :job_id, T.nilable(String), default: nil |
#queue_name ⇒ Symbol? (readonly)
Returns the value of prop queue_name.
|
|
# File '' const :queue_name, T.nilable(Symbol), default: nil |
Instance Method Details
#to_kwargs ⇒ Kwargs
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 |