gitlab-org--gitlab-foss/lib/api/entities/package_version.rb

15 lines
301 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module API
module Entities
class PackageVersion < Grape::Entity
expose :id
expose :version
expose :created_at
expose :tags
expose :pipeline, if: ->(package) { package.original_build_info }, using: Package::Pipeline
end
end
end