debian-mirror-gitlab/lib/api/entities/job_request/dependency.rb
2020-10-24 23:57:45 +05:30

12 lines
287 B
Ruby

# frozen_string_literal: true
module API
module Entities
module JobRequest
class Dependency < Grape::Entity
expose :id, :name, :token
expose :artifacts_file, using: Entities::Ci::JobArtifactFile, if: ->(job, _) { job.artifacts? }
end
end
end
end