Class: Types::Ci::JobArtifactType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/ci/job_artifact_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes

Instance Method Summary collapse

Methods inherited from BaseObject

accepts, assignable?, authorization, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#download_pathObject


19
20
21
22
23
24
25
# File 'app/graphql/types/ci/job_artifact_type.rb', line 19

def download_path
  ::Gitlab::Routing.url_helpers.download_project_job_artifacts_path(
    object.project,
    object.job,
    file_type: object.file_type
  )
end