class PactBroker::Api::Resources::LatestPacts

Public Instance Methods

allowed_methods() click to toggle source
# File lib/pact_broker/api/resources/latest_pacts.rb, line 12
def allowed_methods
  ["GET", "OPTIONS"]
end
content_types_provided() click to toggle source
# File lib/pact_broker/api/resources/latest_pacts.rb, line 8
def content_types_provided
  [["application/hal+json", :to_json]]
end
pacts() click to toggle source
# File lib/pact_broker/api/resources/latest_pacts.rb, line 20
def pacts
  @pacts ||= pact_service.find_latest_pacts
end
policy_name() click to toggle source
# File lib/pact_broker/api/resources/latest_pacts.rb, line 24
def policy_name
  :'pacts::latest_pacts'
end
to_json() click to toggle source
# File lib/pact_broker/api/resources/latest_pacts.rb, line 16
def to_json
  decorator_class(:pact_collection_decorator).new(pacts).to_json(**decorator_options)
end