15 lines
292 B
Ruby
15 lines
292 B
Ruby
|
# 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.build_info }, using: Package::Pipeline
|
||
|
end
|
||
|
end
|
||
|
end
|