Sha256: 67c3a38182f8c7d2ace28ab15176cc9987c9d12b06d2618ef673ca2b4cb9e5c1
Contents?: true
Size: 741 Bytes
Versions: 3
Compression:
Stored size: 741 Bytes
Contents
# frozen_string_literal: true require_relative "pact_config/grpc" module Sbmt module Pact module Consumer module PactConfig def self.new(transport_type, consumer_name:, provider_name:, opts: {}) case transport_type when :http Http.new(consumer_name: consumer_name, provider_name: provider_name, opts: opts) when :grpc Grpc.new(consumer_name: consumer_name, provider_name: provider_name, opts: opts) when :message Message.new(consumer_name: consumer_name, provider_name: provider_name, opts: opts) else raise ArgumentError, "unknown transport_type: #{transport_type}" end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sbmt-pact-0.12.2 | lib/sbmt/pact/consumer/pact_config.rb |
sbmt-pact-0.12.1 | lib/sbmt/pact/consumer/pact_config.rb |
sbmt-pact-0.12.0 | lib/sbmt/pact/consumer/pact_config.rb |