Class: FuncRunner::RunResult
- Inherits:
-
Object
- Object
- FuncRunner::RunResult
- Defined in:
- lib/func_runner/run_result.rb
Instance Attribute Summary collapse
-
#run_id ⇒ Object
Returns the value of attribute run_id.
-
#thread_id ⇒ Object
Returns the value of attribute thread_id.
-
#tool_outputs ⇒ Object
Returns the value of attribute tool_outputs.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ RunResult
constructor
A new instance of RunResult.
- #to_json ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ RunResult
Returns a new instance of RunResult.
7 8 9 10 11 |
# File 'lib/func_runner/run_result.rb', line 7 def initialize( = {}) @run_id = [:run_id] @thread_id = [:thread_id] @tool_outputs = [:tool_outputs] || [] end |
Instance Attribute Details
#run_id ⇒ Object
Returns the value of attribute run_id.
5 6 7 |
# File 'lib/func_runner/run_result.rb', line 5 def run_id @run_id end |
#thread_id ⇒ Object
Returns the value of attribute thread_id.
5 6 7 |
# File 'lib/func_runner/run_result.rb', line 5 def thread_id @thread_id end |
#tool_outputs ⇒ Object
Returns the value of attribute tool_outputs.
5 6 7 |
# File 'lib/func_runner/run_result.rb', line 5 def tool_outputs @tool_outputs end |
Instance Method Details
#to_json ⇒ Object
13 14 15 |
# File 'lib/func_runner/run_result.rb', line 13 def to_json { tool_outputs: @tool_outputs }.to_json end |