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.27.14 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.13 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.12 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.11 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.10 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.9 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.8 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.4 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.2 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.27.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.26.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.25.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.25.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.24.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.23.0 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.22.3 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.22.2 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.22.1 lib/pact_broker/client/pact_hash.rb
pact_broker-client-1.21.0 lib/pact_broker/client/pact_hash.rb