class Pact::Provider::VerificationReport
Public Class Methods
Source
# File lib/pact/provider/verification_report.rb, line 8 def initialize (options) @consumer = options[:consumer] @provider = options[:provider] @result = options[:result] @output = options[:output] end
Public Instance Methods
Source
# File lib/pact/provider/verification_report.rb, line 24 def as_json options = {} to_hash end
Source
# File lib/pact/provider/verification_report.rb, line 32 def report_file_name file_name("#{@consumer[:name]}_#{@consumer[:ref]}", "#{@provider[:name]}_#{@provider[:ref]}") end
Source
# File lib/pact/provider/verification_report.rb, line 15 def to_hash { :consumer => @consumer, :provider => @provider, :result => @result, :output => @output } end
Source
# File lib/pact/provider/verification_report.rb, line 28 def to_json(options = {}) as_json.to_json(options) end