mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-09 07:28:41 -07:00
24 lines
440 B
Ruby
24 lines
440 B
Ruby
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
|