mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-08 23:18:18 -07:00
33 lines
688 B
Ruby
33 lines
688 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Analyze
|
|
module Graph
|
|
module Column
|
|
module GenderColumn
|
|
class NonBinary < GroupedBarColumnPresenter
|
|
include Analyze::Graph::Column::GenderColumn::ScoreForGender
|
|
include Analyze::Graph::Column::GenderColumn::GenderCount
|
|
def label
|
|
%w[Non-Binary]
|
|
end
|
|
|
|
def basis
|
|
"student"
|
|
end
|
|
|
|
def show_irrelevancy_message?
|
|
false
|
|
end
|
|
|
|
def show_insufficient_data_message?
|
|
false
|
|
end
|
|
|
|
def gender
|
|
::Gender.find_by_qualtrics_code 4
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|