class PactBroker::Api::Resources::LatestVersion

Public Instance Methods

allowed_methods() click to toggle source
# File lib/pact_broker/api/resources/latest_version.rb, line 11
def allowed_methods
  ["GET", "OPTIONS"]
end
content_types_accepted() click to toggle source
# File lib/pact_broker/api/resources/latest_version.rb, line 7
def content_types_accepted
  []
end

Private Instance Methods

version() click to toggle source
# File lib/pact_broker/api/resources/latest_version.rb, line 17
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