Sha256: 3bfa6c5756c31e26c4a9b4a153d03d95d0d1a9d78c43d46d33756954e50fc1e6
Contents?: true
Size: 564 Bytes
Versions: 119
Compression:
Stored size: 564 Bytes
Contents
require 'pact_broker/client/matrix/json_formatter' require 'pact_broker/client/matrix/text_formatter' module PactBroker module Client class Matrix class Formatter def self.call(matrix_lines, format) formatter = case format when 'json' then JsonFormatter when 'table' then TextFormatter else raise PactBroker::Client::Error.new("Invalid output option '#{format}. Must be one of 'table' or 'json'.") end formatter.call(matrix_lines) end end end end end
Version data entries
119 entries across 119 versions & 1 rubygems