Sha256: 995f374edd4b7c76404628a7ffb4ef2e311686f233ee63ac37d41e026c8787ef

Contents?: true

Size: 487 Bytes

Versions: 44

Compression:

Stored size: 487 Bytes

Contents

require "pact_broker/api/resources/verification"

module PactBroker
  module Api
    module Resources
      class LatestVerificationForLatestPact < Verification
        def resource_exists?
          !!verification
        end

        private

        def pact
          @pact ||= pact_service.find_latest_pact(pact_params)
        end

        def verification
          @verification ||= pact && verification_service.find_latest_for_pact(pact)
        end
      end
    end
  end
end

Version data entries

44 entries across 44 versions & 1 rubygems

Version Path
pact_broker-2.96.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.95.1 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.95.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.94.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.93.4 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.93.3 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.93.2 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.93.1 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.93.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.92.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.91.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.90.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.89.1 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.89.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.88.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.87.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.86.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.85.1 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.85.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb
pact_broker-2.84.0 lib/pact_broker/api/resources/latest_verification_for_latest_pact.rb