dirty commit: can't get references to work correctly between any tables

This commit is contained in:
Nelson Jovel 2024-01-04 19:36:10 -08:00
parent e1f0b78236
commit a4fddbeced
183 changed files with 5461 additions and 5 deletions

View file

@ -0,0 +1,17 @@
module Analyze
module Slice
class AllData
def to_s
'All Data'
end
def slug
'all-data'
end
def graphs
[Analyze::Graph::AllData.new]
end
end
end
end

View file

@ -0,0 +1,17 @@
module Analyze
module Slice
class StudentsAndTeachers
def to_s
'Students & Teachers'
end
def slug
'students-and-teachers'
end
def graphs
[Analyze::Graph::StudentsAndTeachers.new]
end
end
end
end

View file

@ -0,0 +1,24 @@
module Analyze
module Slice
class StudentsByGroup
attr_reader :races, :grades
def initialize(races:, grades:)
@races = races
@grades = grades
end
def to_s
'Students by Group'
end
def slug
'students-by-group'
end
def graphs
[Analyze::Graph::StudentsByRace.new(races:), Analyze::Graph::StudentsByGrade.new(grades:)]
end
end
end
end