Sha256: ae882d623cb2195846ac660b1be02921ac04cb041d4043336232a03572155d2b

Contents?: true

Size: 300 Bytes

Versions: 4

Compression:

Stored size: 300 Bytes

Contents

require 'json'

class LoadTracer
  class JsonFormatter
    def self.export(dependencies:, reverse_dependencies:)
      report = DefaultFormatter.export(
        dependencies: dependencies,
        reverse_dependencies: reverse_dependencies
      )

      report.map(&:to_h).to_json
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
load_tracer-0.6.1 lib/load_tracer/formatter/json.rb
load_tracer-0.6.0 lib/load_tracer/formatter/json.rb
load_tracer-0.4.0 lib/load_tracer/formatter/json.rb
load_tracer-0.3.0 lib/load_tracer/formatter/json.rb