14 lines
226 B
Ruby
14 lines
226 B
Ruby
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
|