Welcome to mirror list, hosted at ThFree Co, Russian Federation.

job_artifact_report_entity.rb « serializers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4280351a6b0f2cffecf6e400e44aac88a2c59bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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