Sha256: 5d4dbf489142e225647fbb1231451314f90c186b1e4975c259eed156e32f1751

Contents?: true

Size: 307 Bytes

Versions: 121

Compression:

Stored size: 307 Bytes

Contents

require 'json'

module PactBroker
  module Client
    class PactHash < ::Hash
      def pact_name
        "#{consumer_name}/#{provider_name} pact"
      end

      def consumer_name
        self[:consumer][:name]
      end

      def provider_name
        self[:provider][:name]
      end
    end
  end
end

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
pact_broker-client-1.47.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.47.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.46.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.45.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.44.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.43.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.42.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.41.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.40.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.39.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.38.3 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.38.2 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.38.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.38.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.37.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.37.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.36.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.35.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.34.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.33.0 lib/pact_broker/client/pact_hash.rb