class Pact::Provider::VerificationReport

Public Class Methods

new(options) click to toggle 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

as_json(options = {}) click to toggle source
# File lib/pact/provider/verification_report.rb, line 24
def as_json options = {}
  to_hash
end
report_file_name() click to toggle 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
to_hash() click to toggle source
# File lib/pact/provider/verification_report.rb, line 15
def to_hash
  {
    :consumer => @consumer,
    :provider => @provider,
    :result => @result,
    :output => @output
  }
end
to_json(options = {}) click to toggle source
# File lib/pact/provider/verification_report.rb, line 28
def to_json(options = {})
  as_json.to_json(options)
end