Class: Types::Repository::BlobType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/repository/blob_type.rb

Overview

rubocop: disable Graphql/AuthorizeTypes This is presented through ‘Repository` that has its own authorization

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

#lfs_oidObject



149
150
151
# File 'app/graphql/types/repository/blob_type.rb', line 149

def lfs_oid
  Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(object.repository, object.id).find
end

#raw_text_blobObject



145
146
147
# File 'app/graphql/types/repository/blob_type.rb', line 145

def raw_text_blob
  object.data unless object.binary?
end