2020-02-13 16:08:59 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
module JobRequest
|
|
|
|
class Dependency < Grape::Entity
|
|
|
|
expose :id, :name, :token
|
2020-08-13 14:10:36 -04:00
|
|
|
expose :artifacts_file, using: Entities::Ci::JobArtifactFile, if: ->(job, _) { job.artifacts? }
|
2020-02-13 16:08:59 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|