app/importers/rows/course_row.rb
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents courses ignoring the section data. Unfortunately this is run
# for each section, rather than each course.
#
# Expects the following headers:
#
#   :course_number, :course_description, :school_local_id,
#   :section_number, :term_local_id, :section_schedule,
#   :section_room_number
Represents a row in a CSV export from Somerville's Aspen X2 student information system.
This structure represents courses ignoring the section data. Unfortunately this is run
for each section, rather than each course.

Expects the following headers.


Represents a row in a CSV export from Somerville ' s Aspen X2 student information system . This structure represents courses ignoring the section data . Unfortunately this is run for each section rather than each course . Expects the following headers .
def build
    course = Course.find_or_initialize_by(course_number: row[:course_number], school_id: school_rails_id)
    course.course_description = row[:course_description]
    return course
  end
def build course = Course . find_or_initialize_by ( course_number : row [ :course_number ] , school_id : school_rails_id ) course . course_description = row [ :course_description ] return course end
Represents a row in a CSV export from Somerville's Aspen X2 student information system.
Represents a row in a CSV export from Somerville ' s Aspen X2 student information system .