gitlab-org--gitlab-foss/app/serializers/project_entity.rb
2018-07-23 11:27:39 -07:00

16 lines
257 B
Ruby

# frozen_string_literal: true
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