Class: FuncRunner::RunResult

Inherits:
Object
  • Object
show all
Defined in:
lib/func_runner/run_result.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @run_id = options[:run_id]
  @thread_id = options[:thread_id]
  @tool_outputs = options[:tool_outputs] || []
end

Instance Attribute Details

#run_idObject

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_idObject

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_outputsObject

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_jsonObject



13
14
15
# File 'lib/func_runner/run_result.rb', line 13

def to_json
  { tool_outputs: @tool_outputs }.to_json
end