class Roqua::CsvExport::Models::Respondent

Public Instance Methods

default_label() click to toggle source
# File lib/roqua/csv_export/models/respondent.rb, line 11
def default_label
  case type
  when 'patient'       then "Patiƫnt"
  when 'parent'        then "1e Ouder"
  when 'second_parent' then "2e Ouder"
  when 'teacher'       then "Leraar"
  when 'caregiver'     then "Mantelzorger"
  when 'profess'       then "Medewerker"
  end
end
label() click to toggle source
Calls superclass method
# File lib/roqua/csv_export/models/respondent.rb, line 7
def label
  super.presence || default_label
end