Class: OneRoster::Types::Classroom

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_h

Constructor Details

#initialize(attributes = {}) ⇒ Classroom

Returns a new instance of Classroom.



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

def initialize(attributes = {})
  @uid             = attributes['id']
  @name            = attributes['name']
  @course_number   = attributes['course_number']
  @period          = attributes['period']
  @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']
  @provider        = 'oneroster'
end

Instance Attribute Details

#course_numberObject (readonly)

Returns the value of attribute course_number.



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

def course_number
  @course_number
end

#gradesObject (readonly)

Returns the value of attribute grades.



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

def grades
  @grades
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#periodObject (readonly)

Returns the value of attribute period.



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

def period
  @period
end

#providerObject (readonly)

Returns the value of attribute provider.



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

def provider
  @provider
end

#subjectsObject (readonly)

Returns the value of attribute subjects.



6
7
8
# File 'lib/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/types/classroom.rb', line 6

def term_end_date
  @term_end_date
end

#term_nameObject (readonly)

Returns the value of attribute term_name.



6
7
8
# File 'lib/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/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/types/classroom.rb', line 6

def uid
  @uid
end