class Clever::Types::Section

Attributes

course[R]
grades[R]
name[R]
period[R]
primary_teacher_uid[R]
provider[R]
students[R]
subjects[R]
teachers[R]
term_id[R]
uid[R]

Public Class Methods

new(attributes = {}, *) click to toggle source
# File lib/clever/types/section.rb, line 18
def initialize(attributes = {}, *)
  @uid                 = attributes['id']
  @name                = attributes['name']
  @period              = attributes['period']
  @course              = attributes['course']
  @grades              = [presence(attributes['grade'])].compact
  @subjects            = [presence(attributes['subject'])].compact
  @students            = attributes['students']
  @teachers            = attributes['teachers']
  @term_id             =  attributes['term_id']
  @provider            = 'clever'
  @primary_teacher_uid = attributes['teacher']
end