Class: RailsPulse::Adapters::JobWrapper
- Inherits:
-
Object
- Object
- RailsPulse::Adapters::JobWrapper
- Defined in:
- lib/rails_pulse/adapters/job_wrapper.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
-
#class_name ⇒ Object
readonly
Returns the value of attribute class_name.
-
#enqueued_at ⇒ Object
readonly
Returns the value of attribute enqueued_at.
-
#executions ⇒ Object
readonly
Returns the value of attribute executions.
-
#job_id ⇒ Object
readonly
Returns the value of attribute job_id.
-
#queue_name ⇒ Object
readonly
Returns the value of attribute queue_name.
Instance Method Summary collapse
-
#initialize(job_id:, class_name:, queue_name:, arguments:, enqueued_at:, executions:) ⇒ JobWrapper
constructor
A new instance of JobWrapper.
Constructor Details
#initialize(job_id:, class_name:, queue_name:, arguments:, enqueued_at:, executions:) ⇒ JobWrapper
Returns a new instance of JobWrapper.
6 7 8 9 10 11 12 13 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 6 def initialize(job_id:, class_name:, queue_name:, arguments:, enqueued_at:, executions:) @job_id = job_id @class_name = class_name @queue_name = queue_name @arguments = arguments @enqueued_at = enqueued_at @executions = executions end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def arguments @arguments end |
#class_name ⇒ Object (readonly)
Returns the value of attribute class_name.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def class_name @class_name end |
#enqueued_at ⇒ Object (readonly)
Returns the value of attribute enqueued_at.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def enqueued_at @enqueued_at end |
#executions ⇒ Object (readonly)
Returns the value of attribute executions.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def executions @executions end |
#job_id ⇒ Object (readonly)
Returns the value of attribute job_id.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def job_id @job_id end |
#queue_name ⇒ Object (readonly)
Returns the value of attribute queue_name.
4 5 6 |
# File 'lib/rails_pulse/adapters/job_wrapper.rb', line 4 def queue_name @queue_name end |