Sha256: ad9e1650f29166e346e43ac7b9e165f4977b74aeac0307c317c309a2ff527811
Contents?: true
Size: 654 Bytes
Versions: 39
Compression:
Stored size: 654 Bytes
Contents
require "pact_broker/api/resources/version" module PactBroker module Api module Resources class LatestVersion < Version def content_types_accepted [] end def allowed_methods ["GET", "OPTIONS"] end private def version if identifier_from_path[:tag] @version ||= version_service.find_by_pacticipant_name_and_latest_tag(identifier_from_path[:pacticipant_name], identifier_from_path[:tag]) else @version ||= version_service.find_latest_by_pacticpant_name(identifier_from_path) end end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems