Class: Igniter::Contracts::Execution::CompiledGraph

Inherits:
Struct
  • Object
show all
Defined in:
lib/igniter/contracts/execution/compiled_graph.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operationsObject

Returns the value of attribute operations

Returns:

  • (Object)

    the current value of operations



6
7
8
# File 'lib/igniter/contracts/execution/compiled_graph.rb', line 6

def operations
  @operations
end

#profile_fingerprintObject

Returns the value of attribute profile_fingerprint

Returns:

  • (Object)

    the current value of 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_hObject



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