Class: Types::Repository::BlobType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Repository::BlobType
- 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, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#lfs_oid ⇒ Object
155 156 157 |
# File 'app/graphql/types/repository/blob_type.rb', line 155 def lfs_oid Gitlab::Graphql::Loaders::BatchLfsOidLoader.new(object.repository, object.id).find end |
#raw_text_blob ⇒ Object
151 152 153 |
# File 'app/graphql/types/repository/blob_type.rb', line 151 def raw_text_blob object.data unless object.binary? end |