2018-07-19 18:43:13 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-03-24 10:11:36 +00:00
|
|
|
class ProjectEntity < Grape::Entity
|
2017-04-28 16:06:19 +00:00
|
|
|
include RequestAwareEntity
|
2017-08-15 17:44:37 +00:00
|
|
|
|
2017-03-24 10:11:36 +00:00
|
|
|
expose :id
|
|
|
|
expose :name
|
|
|
|
|
|
|
|
expose :full_path do |project|
|
2017-06-29 17:06:35 +00:00
|
|
|
project_path(project)
|
2017-03-24 10:11:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
expose :full_name do |project|
|
|
|
|
project.full_name
|
|
|
|
end
|
|
|
|
end
|