2020-01-31 18:09:11 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class CommitStats < Grape::Entity
|
2022-11-03 12:11:20 +00:00
|
|
|
expose :additions, documentation: { type: 'integer', example: 1 }
|
|
|
|
expose :deletions, documentation: { type: 'integer', example: 0 }
|
|
|
|
expose :total, documentation: { type: 'integer', example: 1 }
|
2020-01-31 18:09:11 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|