Sha256: a9bd5bdf1479c68e191447fc5d404c1d9d4804283bf12ab652fbdca5b28c3d37

Contents?: true

Size: 610 Bytes

Versions: 12

Compression:

Stored size: 610 Bytes

Contents

module PactBroker
  module Contracts
    ContractsToPublish = Struct.new(:pacticipant_name, :pacticipant_version_number, :tags, :branch, :build_url, :contracts) do
      # rubocop: disable Metrics/ParameterLists
      def self.from_hash(pacticipant_name: nil, pacticipant_version_number: nil, tags: nil, branch: nil, build_url: nil, contracts: nil)
        new(pacticipant_name, pacticipant_version_number, tags, branch, build_url, contracts)
      end
      # rubocop: enable Metrics/ParameterLists

      def pacticipant_names
        contracts.flat_map(&:pacticipant_names).uniq
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pact_broker-2.107.1 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.107.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.106.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.105.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.104.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.103.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.102.2 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.102.1 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.102.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.101.0 lib/pact_broker/contracts/contracts_to_publish.rb
pact_broker-2.100.0 lib/pact_broker/contracts/contracts_to_publish.rb