Sha256: 0b205ddb5d83e1a689b2e891507ef9eafde706f115a3df902a20f6ddfee850c9
Contents?: true
Size: 606 Bytes
Versions: 9
Compression:
Stored size: 606 Bytes
Contents
require 'pact_broker/api/resources/base_resource' module PactBroker module Api module Resources class LatestPacts < BaseResource def content_types_provided [["application/hal+json", :to_json]] end def allowed_methods ["GET", "OPTIONS"] end def to_json decorator_class(:pact_collection_decorator).new(pacts).to_json(decorator_options) end def pacts @pacts ||= pact_service.find_latest_pacts end def policy_name :'pacts::pacts' end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems