2018-11-18 11:00:15 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
class ProjectEntity < Grape::Entity
|
|
|
|
include RequestAwareEntity
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
expose :id
|
|
|
|
expose :name
|
|
|
|
|
|
|
|
expose :full_path do |project|
|
2017-09-10 17:25:29 +05:30
|
|
|
project_path(project)
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
expose :full_name do |project|
|
|
|
|
project.full_name
|
|
|
|
end
|
|
|
|
end
|