2016-11-10 09:32:23 -05:00
|
|
|
class PipelineArtifactEntity < Grape::Entity
|
|
|
|
include RequestAwareEntity
|
|
|
|
|
|
|
|
expose :name do |build|
|
|
|
|
build.name
|
|
|
|
end
|
|
|
|
|
|
|
|
expose :url do |build|
|
|
|
|
download_namespace_project_build_artifacts_path(
|
2016-11-10 11:50:55 -05:00
|
|
|
build.project.namespace,
|
|
|
|
build.project,
|
2016-11-10 09:32:23 -05:00
|
|
|
build)
|
|
|
|
end
|
|
|
|
end
|