2020-04-21 11:21:10 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectImportFailedRelation < Grape::Entity
|
2021-03-22 20:09:09 -04:00
|
|
|
expose :id, :created_at, :exception_class, :source
|
|
|
|
|
|
|
|
expose :exception_message do |_|
|
|
|
|
nil
|
|
|
|
end
|
2020-04-21 11:21:10 -04:00
|
|
|
|
|
|
|
expose :relation_key, as: :relation_name
|
2021-12-01 07:16:08 -05:00
|
|
|
expose :relation_index, as: :line_number
|
2020-04-21 11:21:10 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|