Sha256: 4f0933feef5f237bfaef139f067c93573909b93e06cd10492cc77f76a5158bd0

Contents?: true

Size: 251 Bytes

Versions: 2

Compression:

Stored size: 251 Bytes

Contents

require 'json'
require 'polytrix/cli/reports/hash_reporter'

module Polytrix
  module CLI
    module Reports
      class JSONReporter < HashReporter
        def convert(data)
          JSON.pretty_generate data
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
polytrix-0.1.0 lib/polytrix/cli/reports/json_reporter.rb
polytrix-0.1.0.pre lib/polytrix/cli/reports/json_reporter.rb