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