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.
sqm-dashboards/app/presenters/analyze/graph/students_by_ell.rb

40 lines
704 B

# frozen_string_literal: true
module Analyze
module Graph
class StudentsByEll
attr_reader :ells
def initialize(ells:)
@ells = ells
end
def to_s
"Students by Ell"
end
def slug
"students-by-ell"
end
def columns
[].tap do |array|
ells.each do |ell|
array << Analyze::Graph::Column::Ell.new(ell:)
end
array.sort_by!(&:label)
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