Sha256: 09480b0a725a464edcd207139d3d78f526fb41f049a2246e95f08f334f8dde1a
Contents?: true
Size: 570 Bytes
Versions: 66
Compression:
Stored size: 570 Bytes
Contents
require 'pact_broker/client/versions/json_formatter' require 'pact_broker/client/versions/text_formatter' module PactBroker module Client class Versions 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
66 entries across 66 versions & 1 rubygems