Class: OllamaAgent::Topology::IR::RouteNode
- Inherits:
-
Data
- Object
- Data
- OllamaAgent::Topology::IR::RouteNode
- Defined in:
- lib/ollama_agent/topology/ir/route_node.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
readonly
Returns the value of attribute action_name.
-
#controller_fqcn ⇒ Object
readonly
Returns the value of attribute controller_fqcn.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#origin_extractor_version ⇒ Object
readonly
Returns the value of attribute origin_extractor_version.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#source_line ⇒ Object
readonly
Returns the value of attribute source_line.
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Class Method Summary collapse
-
.build(source_path:, source_line:, origin_extractor_version:, verb:, path:, controller_fqcn:, action_name:) ⇒ Object
rubocop:disable Metrics/ParameterLists.
Instance Attribute Details
#action_name ⇒ Object (readonly)
Returns the value of attribute action_name
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def action_name @action_name end |
#controller_fqcn ⇒ Object (readonly)
Returns the value of attribute controller_fqcn
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def controller_fqcn @controller_fqcn end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def kind @kind end |
#origin_extractor_version ⇒ Object (readonly)
Returns the value of attribute origin_extractor_version
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def origin_extractor_version @origin_extractor_version end |
#path ⇒ Object (readonly)
Returns the value of attribute path
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def path @path end |
#source_line ⇒ Object (readonly)
Returns the value of attribute source_line
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def source_line @source_line end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def source_path @source_path end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb
6 7 8 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 6 def verb @verb end |
Class Method Details
.build(source_path:, source_line:, origin_extractor_version:, verb:, path:, controller_fqcn:, action_name:) ⇒ Object
rubocop:disable Metrics/ParameterLists
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/ollama_agent/topology/ir/route_node.rb', line 17 def self.build( source_path:, source_line:, origin_extractor_version:, verb:, path:, controller_fqcn:, action_name: ) # rubocop:enable Metrics/ParameterLists new( :route, source_path.to_s, Integer(source_line), origin_extractor_version.to_s, verb.to_s.upcase, path.to_s, controller_fqcn.to_s, action_name.to_s ) end |