Sha256: cafac039b7f54e4d0b276b19dc897a71381e045681146dcc1272f1bfc67c91ee
Contents?: true
Size: 613 Bytes
Versions: 10
Compression:
Stored size: 613 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::latest_pacts' end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems