Class: LittleGhost::Assembly::Step
- Inherits:
-
Data
- Object
- Data
- LittleGhost::Assembly::Step
- Defined in:
- lib/little_ghost/assembly_execution.rb
Overview
One logical child execution in a composite assembly.
Instance Attribute Summary collapse
-
#assembly_id ⇒ Object
readonly
Returns the value of attribute assembly_id.
-
#assembly_kind ⇒ Object
readonly
Returns the value of attribute assembly_kind.
-
#attempts ⇒ Object
readonly
Returns the value of attribute attempts.
-
#branch_id ⇒ Object
readonly
Returns the value of attribute branch_id.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#output_truncated ⇒ Object
readonly
Returns the value of attribute output_truncated.
-
#parent_id ⇒ Object
readonly
Returns the value of attribute parent_id.
-
#participant ⇒ Object
readonly
Returns the value of attribute participant.
-
#predecessor_ids ⇒ Object
readonly
Returns the value of attribute predecessor_ids.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#usage ⇒ Object
readonly
Returns the value of attribute usage.
Instance Method Summary collapse
-
#initialize(id:, participant:, assembly_id:, assembly_kind:, status:, attempts:, usage:, parent_id: nil, predecessor_ids: [], branch_id: nil, output: nil, output_truncated: false) ⇒ Step
constructor
A new instance of Step.
Constructor Details
#initialize(id:, participant:, assembly_id:, assembly_kind:, status:, attempts:, usage:, parent_id: nil, predecessor_ids: [], branch_id: nil, output: nil, output_truncated: false) ⇒ Step
Returns a new instance of Step.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/little_ghost/assembly_execution.rb', line 23 def initialize(id:, participant:, assembly_id:, assembly_kind:, status:, attempts:, usage:, parent_id: nil, predecessor_ids: [], branch_id: nil, output: nil, output_truncated: false) super( id: id.to_s.freeze, parent_id: parent_id&.to_s&.freeze, predecessor_ids: Array(predecessor_ids).map { |value| value.to_s.freeze }.freeze, branch_id: branch_id&.to_s&.freeze, participant: participant.to_s.freeze, assembly_id: assembly_id.to_s.freeze, assembly_kind: assembly_kind.to_sym, status: status.to_sym, attempts: Array(attempts).freeze, usage:, output:, output_truncated: output_truncated == true ) end |
Instance Attribute Details
#assembly_id ⇒ Object (readonly)
Returns the value of attribute assembly_id
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def assembly_id @assembly_id end |
#assembly_kind ⇒ Object (readonly)
Returns the value of attribute assembly_kind
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def assembly_kind @assembly_kind end |
#attempts ⇒ Object (readonly)
Returns the value of attribute attempts
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def attempts @attempts end |
#branch_id ⇒ Object (readonly)
Returns the value of attribute branch_id
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def branch_id @branch_id end |
#id ⇒ Object (readonly)
Returns the value of attribute id
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def id @id end |
#output ⇒ Object (readonly)
Returns the value of attribute output
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def output @output end |
#output_truncated ⇒ Object (readonly)
Returns the value of attribute output_truncated
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def output_truncated @output_truncated end |
#parent_id ⇒ Object (readonly)
Returns the value of attribute parent_id
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def parent_id @parent_id end |
#participant ⇒ Object (readonly)
Returns the value of attribute participant
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def participant @participant end |
#predecessor_ids ⇒ Object (readonly)
Returns the value of attribute predecessor_ids
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def predecessor_ids @predecessor_ids end |
#status ⇒ Object (readonly)
Returns the value of attribute status
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def status @status end |
#usage ⇒ Object (readonly)
Returns the value of attribute usage
19 20 21 |
# File 'lib/little_ghost/assembly_execution.rb', line 19 def usage @usage end |