Sha256: 829ad487f4ef9a88fc959c015100ee8155b64a1f80d64e8668882f6be8c4d082

Contents?: true

Size: 365 Bytes

Versions: 2

Compression:

Stored size: 365 Bytes

Contents

# frozen_string_literal: true

module FuncRunner
  class RunResult
    attr_accessor :run_id, :thread_id, :tool_outputs

    def initialize(options = {})
      @run_id = options[:run_id]
      @thread_id = options[:thread_id]
      @tool_outputs = options[:tool_outputs] || []
    end

    def to_json
      { tool_outputs: @tool_outputs }.to_json
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
funcrunner-0.1.1 lib/func_runner/run_result.rb
funcrunner-0.1.0 lib/func_runner/run_result.rb