Class: OneRoster::Types::Course
Instance Attribute Summary collapse
-
#course_code ⇒ Object
readonly
Returns the value of attribute course_code.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Course
constructor
A new instance of Course.
Methods inherited from Base
Constructor Details
#initialize(attributes = {}) ⇒ Course
Returns a new instance of Course.
10 11 12 13 14 |
# File 'lib/types/course.rb', line 10 def initialize(attributes = {}, *) @uid = attributes['sourcedId'] @course_code = attributes['courseCode'] @provider = 'oneroster' end |
Instance Attribute Details
#course_code ⇒ Object (readonly)
Returns the value of attribute course_code.
6 7 8 |
# File 'lib/types/course.rb', line 6 def course_code @course_code end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/types/course.rb', line 6 def provider @provider end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/types/course.rb', line 6 def uid @uid end |