Class: OllamaAgent::Topology::IR::WorkerNode

Inherits:
Data
  • Object
show all
Defined in:
lib/ollama_agent/topology/ir/worker_node.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#fqcnObject (readonly)

Returns the value of attribute fqcn

Returns:

  • (Object)

    the current value of fqcn



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def fqcn
  @fqcn
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def kind
  @kind
end

#origin_extractor_versionObject (readonly)

Returns the value of attribute origin_extractor_version

Returns:

  • (Object)

    the current value of origin_extractor_version



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def origin_extractor_version
  @origin_extractor_version
end

#perform_signatureObject (readonly)

Returns the value of attribute perform_signature

Returns:

  • (Object)

    the current value of perform_signature



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def perform_signature
  @perform_signature
end

#queueObject (readonly)

Returns the value of attribute queue

Returns:

  • (Object)

    the current value of queue



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def queue
  @queue
end

#source_lineObject (readonly)

Returns the value of attribute source_line

Returns:

  • (Object)

    the current value of source_line



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def source_line
  @source_line
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



6
7
8
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 6

def source_path
  @source_path
end

Class Method Details

.build(source_path:, source_line:, origin_extractor_version:, fqcn:, queue:, perform_signature: {}) ⇒ Object

rubocop:disable Metrics/ParameterLists



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'lib/ollama_agent/topology/ir/worker_node.rb', line 16

def self.build(
  source_path:,
  source_line:,
  origin_extractor_version:,
  fqcn:,
  queue:,
  perform_signature: {}
)
  # rubocop:enable Metrics/ParameterLists
  new(
    :worker,
    source_path.to_s,
    Integer(source_line),
    origin_extractor_version.to_s,
    fqcn.to_s,
    queue.to_s,
    IR.deep_freeze_hash(perform_signature)
  )
end