2017-03-24 06:11:36 -04:00
|
|
|
class ProjectEntity < Grape::Entity
|
2017-04-28 12:06:19 -04:00
|
|
|
include RequestAwareEntity
|
2017-08-15 13:44:37 -04:00
|
|
|
|
2017-03-24 06:11:36 -04:00
|
|
|
expose :id
|
|
|
|
expose :name
|
|
|
|
|
|
|
|
expose :full_path do |project|
|
2017-06-29 13:06:35 -04:00
|
|
|
project_path(project)
|
2017-03-24 06:11:36 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
expose :full_name do |project|
|
|
|
|
project.full_name
|
|
|
|
end
|
|
|
|
end
|