app/config_objects/per_district.rb
# Different districts export assessment data in different ways, and
# import different specific assessments or use different code to process
# it.
Different districts export assessment data in different ways, and
import different specific assessments or use different code to process
it.
Different districts export assessment data in different ways and import different specific assessments or use different code to process it .
def choose_assessment_importer_row_class(row)
    if @district_key == SOMERVILLE
      case row[:assessment_test]
        when 'MCAS' then McasRow
        when 'ACCESS', 'WIDA', 'WIDA-ACCESS' then AccessRow
        when 'DIBELS' then DibelsRow
        else nil
      end
    elsif @district_key == BEDFORD
      if /MCAS Gr (\d+) (Math|ELA)/.match(row[:assessment_test]).present?
        McasRow
      else
        nil
      end
    else
      raise_not_handled!
    end
  end
def choose_assessment_importer_row_class ( row ) if @district_key == SOMERVILLE case row [ :assessment_test ] when 'MCAS' then McasRow when 'ACCESS' , 'WIDA' , 'WIDA-ACCESS' then AccessRow when 'DIBELS' then DibelsRow else nil end elsif @district_key == BEDFORD if / MCAS Gr ( \d +) (Math|ELA) / . match ( row [ :assessment_test ] ) . present? McasRow else nil end else raise_not_handled! end end
Different districts export assessment data in different ways, and
import different specific assessments or use different code to process
it.
Different districts export assessment data in different ways and import different specific assessments or use different code to process it .
row
<not_specific>