Sha256: c6beb5f4948ab2b525838843fac243acca3adfae5d4540c26693d796396719fc
Contents?: true
Size: 715 Bytes
Versions: 140
Compression:
Stored size: 715 Bytes
Contents
require 'pact/consumer_contract' module Pact::Provider class VerificationReport include Pact::FileName def initialize (options) @consumer = options[:consumer] @provider = options[:provider] @result = options[:result] @output = options[:output] end def to_hash { :consumer => @consumer, :provider => @provider, :result => @result, :output => @output } end def as_json options = {} to_hash end def to_json(options = {}) as_json.to_json(options) end def report_file_name file_name("#{@consumer[:name]}_#{@consumer[:ref]}", "#{@provider[:name]}_#{@provider[:ref]}") end end end
Version data entries
140 entries across 140 versions & 1 rubygems