add exported_column with its type
Co-authored-by: mfo <mfo@users.noreply.github.com>
This commit is contained in:
parent
e1e497bd7b
commit
b2c3887520
3 changed files with 54 additions and 0 deletions
12
app/models/exported_column.rb
Normal file
12
app/models/exported_column.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue