Sha256: d9254fe0a8a6afef6980484ad84612df61552c5c270e4d8cc90b8229d5878b71

Contents?: true

Size: 295 Bytes

Versions: 11

Compression:

Stored size: 295 Bytes

Contents

require 'pact/consumer_contract/pact_file'

module PactBroker
  module Provider
    class PactSource

      attr_reader :uri

      def initialize uri
        @uri = uri
      end

      def pact_json
        @pact_json ||= Pact::PactFile.read(uri.uri, uri.options)
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pact-1.10.0 lib/pact/provider/pact_source.rb
pact-1.9.6 lib/pact/provider/pact_source.rb
pact-1.9.5 lib/pact/provider/pact_source.rb
pact-1.9.4 lib/pact/provider/pact_source.rb
pact-1.9.3 lib/pact/provider/pact_source.rb
pact-1.9.2 lib/pact/provider/pact_source.rb
pact-1.9.1 lib/pact/provider/pact_source.rb
pact-1.9.0 lib/pact/provider/pact_source.rb
pact-1.8.1 lib/pact/provider/pact_source.rb
pact-1.8.0 lib/pact/provider/pact_source.rb
pact-1.7.0 lib/pact/provider/pact_source.rb