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