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


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

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

#raw_text_blobObject


142
143
144
# File 'app/graphql/types/repository/blob_type.rb', line 142

def raw_text_blob
  object.data unless object.binary?
end