class AudienceCollection

Public Class Methods

available_affiliations() click to toggle source
# File lib/buweb/audience_collection.rb, line 26
def self.available_affiliations
  Person.distinct(:affiliations).compact.map(&:capitalize).sort
end
available_class_standings() click to toggle source
# File lib/buweb/audience_collection.rb, line 38
def self.available_class_standings
  ['Freshman', 'Sophmore', 'Junior', 'Senior']
end
available_departments() click to toggle source
# File lib/buweb/audience_collection.rb, line 54
def self.available_departments
  Department.asc(:title)
end
available_employee_types() click to toggle source
# File lib/buweb/audience_collection.rb, line 50
def self.available_employee_types
  ['Employee', 'Faculty']
end
available_housing_statuses() click to toggle source
# File lib/buweb/audience_collection.rb, line 46
def self.available_housing_statuses
  ['On-Campus', 'Apartments', 'Off-Campus Commuter'].sort
end
available_majors() click to toggle source
# File lib/buweb/audience_collection.rb, line 42
def self.available_majors
  AcademicProgram.asc(:full_name)
end
available_schools() click to toggle source
# File lib/buweb/audience_collection.rb, line 30
def self.available_schools
  School.asc(:title)
end
available_student_levels() click to toggle source
# File lib/buweb/audience_collection.rb, line 34
def self.available_student_levels
  Person.distinct(:level).sort
end