Sha256: 40cb4825050be51d3015042c815dcda21bf05158e5cd0a486c2b19da45a89b12
Contents?: true
Size: 948 Bytes
Versions: 9
Compression:
Stored size: 948 Bytes
Contents
require 'pact_broker/api/resources/base_resource' require 'pact_broker/pacts/pact_params' require 'pact_broker/pacts/diff' require 'pact_broker/api/decorators/pact_decorator' module PactBroker module Api module Resources class PreviousDistinctPactVersion < BaseResource def content_types_provided [["application/hal+json", :to_json]] end def allowed_methods ["GET", "OPTIONS"] end def resource_exists? !!pact end def to_json decorator_class(:pact_decorator).new(pact).to_json(decorator_options) end def pact @pact ||= pact_service.find_previous_distinct_pact_version(pact_params) end def pact_params @pact_params ||= PactBroker::Pacts::PactParams.from_request request, path_info end def policy_name :'pacts::pact' end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems