Class: Ductr::Store::PipelineSerializer::SerializedPipelineStep
- Inherits:
-
Struct
- Object
- Struct
- Ductr::Store::PipelineSerializer::SerializedPipelineStep
- Defined in:
- lib/ductr/store/pipeline_serializer.rb,
lib/ductr/store/pipeline_serializer.rb
Instance Attribute Summary collapse
-
#done ⇒ Boolean
readonly
The step’s fiber state.
-
#jobs ⇒ Array<Job>
readonly
The step’s jobs.
Instance Method Summary collapse
-
#done? ⇒ Boolean
Check if the step is done.
-
#initialize(jobs, done) ⇒ SerializedPipelineStep
constructor
A new instance of SerializedPipelineStep.
Constructor Details
#initialize(jobs, done) ⇒ SerializedPipelineStep
Returns a new instance of SerializedPipelineStep.
15 16 17 18 |
# File 'lib/ductr/store/pipeline_serializer.rb', line 15 def initialize(jobs, done) @jobs = jobs @done = done end |
Instance Attribute Details
#done ⇒ Boolean (readonly)
Returns The step’s fiber state.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ductr/store/pipeline_serializer.rb', line 10 class SerializedPipelineStep < Struct # # @param [Array<Job>] jobs The step's jobs # @param [Boolean] done The step's fiber state # def initialize(jobs, done) @jobs = jobs @done = done end end |
#jobs ⇒ Array<Job> (readonly)
Returns The step’s jobs.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/ductr/store/pipeline_serializer.rb', line 10 class SerializedPipelineStep < Struct # # @param [Array<Job>] jobs The step's jobs # @param [Boolean] done The step's fiber state # def initialize(jobs, done) @jobs = jobs @done = done end end |
Instance Method Details
#done? ⇒ Boolean
Check if the step is done.
82 83 84 |
# File 'lib/ductr/store/pipeline_serializer.rb', line 82 def done? done end |