Class: Types::BlobViewerType

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

Overview

rubocop:disable Graphql/AuthorizeTypes

Direct Known Subclasses

Snippets::BlobViewerType

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

#collapsedObject



39
40
41
# File 'app/graphql/types/blob_viewer_type.rb', line 39

def collapsed
  !!object&.collapsed?
end

#too_largeObject



43
44
45
# File 'app/graphql/types/blob_viewer_type.rb', line 43

def too_large
  !!object&.too_large?
end