class PactBroker::Client::Matrix::Formatter
Public Class Methods
call(matrix_lines, format)
click to toggle source
# File lib/pact_broker/client/matrix/formatter.rb, line 8 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