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



28
29
30
31
32
33
34
# File 'app/graphql/types/ci/job_artifact_type.rb', line 28

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