mirror of
https://github.com/edcommonwealth/Dashboard.git
synced 2026-03-07 13:38:12 -08:00
29 lines
543 B
Ruby
29 lines
543 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Dashboard
|
|
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
|
|
end
|