gitlab-org--gitlab-foss/app/serializers/job_artifact_report_entity.rb
2019-05-28 17:06:29 +02:00

13 lines
322 B
Ruby

# frozen_string_literal: true
class JobArtifactReportEntity < Grape::Entity
include RequestAwareEntity
expose :file_type
expose :file_format
expose :size
expose :download_path do |artifact|
download_project_job_artifacts_path(artifact.job.project, artifact.job, file_type: artifact.file_format)
end
end