cartodb/app/controllers/carto/superadmin/user_migration_import_presenter.rb
2020-06-15 10:58:47 +08:00

20 lines
388 B
Ruby

module Carto
module Superadmin
class UserMigrationImportPresenter
def initialize(user_migration_import)
@user_migration_import = user_migration_import
end
def to_poro
{
id: @user_migration_import.id,
state: @user_migration_import.state,
log: @user_migration_import.log.entries
}
end
end
end
end