demarches-normaliennes/app/models/exported_column.rb

13 lines
223 B
Ruby
Raw Normal View History

# 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