Sha256: b4c78efc2e077df3335f8ff98d188493e87cd055349515315d1ac319ea2ff920

Contents?: true

Size: 687 Bytes

Versions: 3

Compression:

Stored size: 687 Bytes

Contents

# frozen_string_literal: true

module Sbmt
  module Pact
    module Consumer
      module PactConfig
        class Base
          attr_reader :consumer_name, :provider_name, :pact_dir, :log_level

          def initialize(consumer_name:, provider_name:, opts: {})
            @consumer_name = consumer_name
            @provider_name = provider_name
            @pact_dir = opts[:pact_dir] || Rails.root.join("pacts").to_s
            @log_level = opts[:log_level] || :info
          end

          def new_interaction(description = nil)
            raise Sbmt::Pact::ImplementationRequired, "#new_interaction should be implemented"
          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/base.rb
sbmt-pact-0.12.1 lib/sbmt/pact/consumer/pact_config/base.rb
sbmt-pact-0.12.0 lib/sbmt/pact/consumer/pact_config/base.rb