gitlab-org--gitlab-foss/app/presenters/packages/nuget/packages_versions_presenter.rb

15 lines
254 B
Ruby

# frozen_string_literal: true
module Packages
module Nuget
class PackagesVersionsPresenter
def initialize(packages)
@packages = packages
end
def versions
@packages.pluck_versions.sort
end
end
end
end