Class: Types::Repositories::CommitType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::Repositories::CommitType
show all
- Defined in:
- app/graphql/types/repositories/commit_type.rb
Instance Method Summary
collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
#present, #unpresented
Instance Method Details
#author_gravatar ⇒ Object
96
97
98
|
# File 'app/graphql/types/repositories/commit_type.rb', line 96
def author_gravatar
GravatarService.new.execute(object.author_email, 40)
end
|
#diffs ⇒ Object
92
93
94
|
# File 'app/graphql/types/repositories/commit_type.rb', line 92
def diffs
object.diffs.diffs
end
|