2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectImportFailedRelation < Grape::Entity
|
2021-04-29 21:17:54 +05:30
|
|
|
expose :id, :created_at, :exception_class, :source
|
|
|
|
|
|
|
|
expose :exception_message do |_|
|
|
|
|
nil
|
|
|
|
end
|
2020-04-22 19:07:51 +05:30
|
|
|
|
|
|
|
expose :relation_key, as: :relation_name
|
2022-01-26 12:08:38 +05:30
|
|
|
expose :relation_index, as: :line_number
|
2020-04-22 19:07:51 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|