You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
681 B
39 lines
681 B
# frozen_string_literal: true
|
|
|
|
module Analyze
|
|
module Graph
|
|
class StudentsBySped
|
|
attr_reader :speds
|
|
|
|
def initialize(speds:)
|
|
@speds = speds
|
|
end
|
|
|
|
def to_s
|
|
"Students by SpEd"
|
|
end
|
|
|
|
def slug
|
|
"students-by-sped"
|
|
end
|
|
|
|
def columns
|
|
[].tap do |array|
|
|
speds.each do |sped|
|
|
array << Analyze::Graph::Column::Sped.new(sped:)
|
|
end
|
|
array << Analyze::Graph::Column::AllStudent.new
|
|
end
|
|
end
|
|
|
|
def source
|
|
Analyze::Source::SurveyData.new(slices: nil)
|
|
end
|
|
|
|
def slice
|
|
Analyze::Slice::StudentsByGroup.new
|
|
end
|
|
end
|
|
end
|
|
end
|