Class: Types::DiffStatsSummaryType

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

Overview

rubocop: disable Graphql/AuthorizeTypes Types that use DiffStatsType should have their 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

#changesObject



20
21
22
# File 'app/graphql/types/diff_stats_summary_type.rb', line 20

def changes
  object[:additions] + object[:deletions]
end