Sha256: d1d4b7611833cf9c5f7dc49b7b24cbeb3bc60a9903268949d286640ffc46a11b

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

module JunitTimingSplitter
  class Bucket
    attr_accessor :files, :total_time

    def initialize(files: [], total_time: 0.0)
      @files = files
      @total_time = total_time
    end

    def to_h
      {
        files: @files,
        total_time: @total_time
      }
    end

    def to_s
      files.join(' ')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
junit_timing_splitter-1.0.0 lib/junit_timing_splitter/bucket.rb