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, authorization_scopes, authorize, authorized?, #current_user, #id

Methods included from Gitlab::Graphql::Present

#present, #unpresented

Instance Method Details

#aheadObject



30
31
32
# File 'app/graphql/types/projects/fork_details_type.rb', line 30

def ahead
  counts[:ahead]
end

#behindObject



34
35
36
# File 'app/graphql/types/projects/fork_details_type.rb', line 34

def behind
  counts[:behind]
end

#countsObject



38
39
40
# File 'app/graphql/types/projects/fork_details_type.rb', line 38

def counts
  @counts ||= object.counts
end