Class: Types::Projects::ForkDetailsType

Inherits:
BaseObject
  • Object
show all
Defined in:
app/graphql/types/projects/fork_details_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

#aheadObject



32
33
34
# File 'app/graphql/types/projects/fork_details_type.rb', line 32

def ahead
  counts[:ahead]
end

#behindObject



36
37
38
# File 'app/graphql/types/projects/fork_details_type.rb', line 36

def behind
  counts[:behind]
end

#countsObject



40
41
42
# File 'app/graphql/types/projects/fork_details_type.rb', line 40

def counts
  @counts ||= object.counts
end