diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 15:09:06 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-02 15:09:06 +0300 |
| commit | 767bd7808153d3ec5ead766dcbd655523afd5324 (patch) | |
| tree | e2f0178b48904a726ef26e2ca3bccd5e810d6d23 /lib/api/entities.rb | |
| parent | 5a88873e5cac26edf65dcfae8d449beb4ed865bb (diff) | |
| download | gitlab-ce-767bd7808153d3ec5ead766dcbd655523afd5324.tar.gz | |
Use Contributor class instead of hash
Diffstat (limited to 'lib/api/entities.rb')
| -rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b190646a1e3..09fb97abf29 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -218,5 +218,9 @@ module API expose :same, as: :compare_same_ref end + + class Contributor < Grape::Entity + expose :name, :email, :commits, :additions, :deletions + end end end |
