BigW Consortium Gitlab

project_entity.rb 226 Bytes
Newer Older
1
class ProjectEntity < Grape::Entity
2
  include RequestAwareEntity
3

4 5 6 7
  expose :id
  expose :name

  expose :full_path do |project|
8
    project_path(project)
9 10 11 12 13 14
  end

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