Sha256: b6e003fbbd963cc60647358228c04d1e7ea3722d4e7e5afac29740a1623bba4f
Contents?: true
Size: 656 Bytes
Versions: 27
Compression:
Stored size: 656 Bytes
Contents
module PactBroker module Contracts ContractToPublish = Struct.new(:consumer_name, :provider_name, :decoded_content, :content_type, :specification, :on_conflict) do # rubocop: disable Metrics/ParameterLists def self.from_hash(consumer_name: nil, provider_name: nil, decoded_content: nil, content_type: nil, specification: nil, on_conflict: nil) new(consumer_name, provider_name, decoded_content, content_type, specification, on_conflict) end # rubocop: enable Metrics/ParameterLists def pact? specification == "pact" end def merge? on_conflict == "merge" end end end end
Version data entries
27 entries across 27 versions & 1 rubygems