Class: Igniter::Contracts::Execution::CompiledGraph
- Inherits:
-
Struct
- Object
- Struct
- Igniter::Contracts::Execution::CompiledGraph
- Defined in:
- lib/igniter/contracts/execution/compiled_graph.rb
Instance Attribute Summary collapse
-
#operations ⇒ Object
Returns the value of attribute operations.
-
#profile_fingerprint ⇒ Object
Returns the value of attribute profile_fingerprint.
Instance Method Summary collapse
-
#initialize(operations:, profile_fingerprint:) ⇒ CompiledGraph
constructor
A new instance of CompiledGraph.
- #to_h ⇒ Object
Constructor Details
#initialize(operations:, profile_fingerprint:) ⇒ CompiledGraph
Returns a new instance of CompiledGraph.
7 8 9 10 |
# File 'lib/igniter/contracts/execution/compiled_graph.rb', line 7 def initialize(operations:, profile_fingerprint:) frozen_operations = operations.freeze super(operations: frozen_operations, profile_fingerprint: profile_fingerprint) end |
Instance Attribute Details
#operations ⇒ Object
Returns the value of attribute operations
6 7 8 |
# File 'lib/igniter/contracts/execution/compiled_graph.rb', line 6 def operations @operations end |
#profile_fingerprint ⇒ Object
Returns the value of attribute profile_fingerprint
6 7 8 |
# File 'lib/igniter/contracts/execution/compiled_graph.rb', line 6 def profile_fingerprint @profile_fingerprint end |
Instance Method Details
#to_h ⇒ Object
12 13 14 15 16 17 |
# File 'lib/igniter/contracts/execution/compiled_graph.rb', line 12 def to_h { operations: StructuredDump.dump(operations), profile_fingerprint: profile_fingerprint } end |