summaryrefslogtreecommitdiff
path: root/app/serializers/project_entity.rb
blob: b3e5fd21e971c3e6eeadc3c791c21e9a9aa10e85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class ProjectEntity < Grape::Entity
  include RequestAwareEntity

  expose :id
  expose :name

  expose :full_path do |project|
    project_path(project)
  end

  expose :full_name do |project|
    project.full_name
  end
end