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.32.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.31.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.30.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.29.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.29.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.28.4 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.28.3 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.28.2 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.28.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.28.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.28 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.27 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.26 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.25 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.24 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.23 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.22 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.21 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.20 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.19 lib/pact_broker/client/pact_hash.rb