app/importers/rows/section_row.rb
# Represents a row in a CSV export from Somerville's Aspen X2 student information system.
# This structure represents sections.
#
# 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 sections.

Expects the following headers.


Represents a row in a CSV export from Somerville ' s Aspen X2 student information system . This structure represents sections . Expects the following headers .
def build
    section = Section.find_or_initialize_by(section_number: row[:section_number],
                                            course_id: course_id,
                                            term_local_id: row[:term_local_id])
    section.schedule = row[:section_schedule]
    section.room_number = row[:section_room_number]
    return section
  end
def build section = Section . find_or_initialize_by ( section_number : row [ :section_number ] , course_id : course_id , term_local_id : row [ :term_local_id ] ) section . schedule = row [ :section_schedule ] section . room_number = row [ :section_room_number ] return section 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 .