gitlab-org--gitlab-foss/app/serializers/build_artifact_entity.rb
2016-12-21 14:52:25 +01:00

14 lines
274 B
Ruby

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