demarches-normaliennes/app/models/exported_column.rb
Christophe Robillard b2c3887520
add exported_column with its type
Co-authored-by: mfo <mfo@users.noreply.github.com>
2024-11-14 14:45:35 +01:00

12 lines
223 B
Ruby

# 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