Class: Survey

Inherits:
ApplicationRecord show all
Defined in:
app/models/survey.rb

Overview

Model to represent a survey/campaign

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationRecord

#==

Class Method Details

.list_active_testsObject


20
21
22
# File 'app/models/survey.rb', line 20

def self.list_active_tests
  Survey.active.join(' ')
end

.list_testsObject


24
25
26
# File 'app/models/survey.rb', line 24

def self.list_tests
  Survey.all.join(' ')
end

Instance Method Details

#to_sObject


28
29
30
# File 'app/models/survey.rb', line 28

def to_s
  name
end