Class: Types::CommitType

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

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

#author_gravatarObject



92
93
94
# File 'app/graphql/types/commit_type.rb', line 92

def author_gravatar
  GravatarService.new.execute(object.author_email, 40)
end

#diffsObject



88
89
90
# File 'app/graphql/types/commit_type.rb', line 88

def diffs
  object.diffs.diffs
end