Sha256: 829fd913fb43701cfabb66c99a12ee35c91081b3f8db3930aef90e4f18251744
Contents?: true
Size: 1.08 KB
Versions: 7
Compression:
Stored size: 1.08 KB
Contents
require 'json' module Pact module Provider module VerificationResults class VerificationResult attr_reader :success, :provider_application_version, :test_results_hash def initialize publishable, success, provider_application_version, test_results_hash, build_url @publishable = publishable @success = success @provider_application_version = provider_application_version @test_results_hash = test_results_hash @build_url = build_url end def publishable? @publishable end def provider_application_version_set? !!provider_application_version end def to_json(options = {}) { success: success, providerApplicationVersion: provider_application_version, testResults: test_results_hash, buildUrl: @build_url }.to_json(options) end def to_s "[success: #{success}, providerApplicationVersion: #{provider_application_version}]" end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems