add exported_column with its type

Co-authored-by: mfo <mfo@users.noreply.github.com>
This commit is contained in:
Christophe Robillard 2024-10-25 14:19:56 +02:00 committed by mfo
parent e1e497bd7b
commit b2c3887520
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# frozen_string_literal: true
class ExportedColumn
attr_reader :column, :libelle
def initialize(column:, libelle:)
@column = column
@libelle = libelle
end
def id = { id: column.id, libelle: }.to_json
end