Class: OneRoster::Types::Course

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_h

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_codeObject (readonly)

Returns the value of attribute course_code.



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

def course_code
  @course_code
end

#providerObject (readonly)

Returns the value of attribute provider.



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

def provider
  @provider
end

#uidObject (readonly)

Returns the value of attribute uid.



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

def uid
  @uid
end