debian-mirror-gitlab/app/serializers/job_artifact_report_entity.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
320 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
class JobArtifactReportEntity < Grape::Entity
include RequestAwareEntity
expose :file_type
expose :file_format
expose :size
expose :download_path do |artifact|
2019-12-26 22:10:19 +05:30
download_project_job_artifacts_path(artifact.job.project, artifact.job, file_type: artifact.file_type)
2019-09-04 21:01:54 +05:30
end
end