Class: Clever::Types::Classroom

Inherits:
Base
  • Object
show all
Defined in:
lib/clever/types/classroom.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#blank?, #presence, #to_h

Constructor Details

#initialize(attributes = {}) ⇒ Classroom

Returns a new instance of Classroom.



18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/clever/types/classroom.rb', line 18

def initialize(attributes = {}, *)
  @uid             = attributes['id']
  @name            = attributes['name']
  @period          = attributes['period']
  @course_number   = attributes['course_number']
  @grades          = attributes['grades']
  @subjects        = attributes['subjects']
  @term_name       = attributes['term_name']
  @term_start_date = attributes['term_start_date']
  @term_end_date   = attributes['term_end_date']
  @term_id         = attributes['term_id']
  @provider        = 'clever'
end

Instance Attribute Details

#course_numberObject (readonly)

Returns the value of attribute course_number.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def course_number
  @course_number
end

#gradesObject (readonly)

Returns the value of attribute grades.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def grades
  @grades
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def name
  @name
end

#periodObject (readonly)

Returns the value of attribute period.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def period
  @period
end

#providerObject (readonly)

Returns the value of attribute provider.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def provider
  @provider
end

#subjectsObject (readonly)

Returns the value of attribute subjects.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def subjects
  @subjects
end

#term_end_dateObject (readonly)

Returns the value of attribute term_end_date.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def term_end_date
  @term_end_date
end

#term_idObject (readonly)

Returns the value of attribute term_id.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def term_id
  @term_id
end

#term_nameObject (readonly)

Returns the value of attribute term_name.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def term_name
  @term_name
end

#term_start_dateObject (readonly)

Returns the value of attribute term_start_date.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def term_start_date
  @term_start_date
end

#uidObject (readonly)

Returns the value of attribute uid.



6
7
8
# File 'lib/clever/types/classroom.rb', line 6

def uid
  @uid
end