debian-mirror-gitlab/app/serializers/build_artifact_entity.rb
2017-08-17 22:00:37 +05:30

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