gitlab-org--gitlab-foss/app/serializers/pipeline_artifact_entity.rb
2016-11-10 17:50:55 +01:00

14 lines
276 B
Ruby

class PipelineArtifactEntity < Grape::Entity
include RequestAwareEntity
expose :name do |build|
build.name
end
expose :url do |build|
download_namespace_project_build_artifacts_path(
build.project.namespace,
build.project,
build)
end
end