Class: Clever::Types::Course
Instance Attribute Summary collapse
-
#district ⇒ Object
readonly
Returns the value of attribute district.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#number ⇒ Object
readonly
Returns the value of attribute number.
-
#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.
12 13 14 15 16 17 18 |
# File 'lib/clever/types/course.rb', line 12 def initialize(attributes = {}, *) @uid = attributes['id'] @district = attributes['district'] @name = attributes['name'] @number = attributes['number'] @provider = 'clever' end |
Instance Attribute Details
#district ⇒ Object (readonly)
Returns the value of attribute district.
6 7 8 |
# File 'lib/clever/types/course.rb', line 6 def district @district end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/clever/types/course.rb', line 6 def name @name end |
#number ⇒ Object (readonly)
Returns the value of attribute number.
6 7 8 |
# File 'lib/clever/types/course.rb', line 6 def number @number end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/clever/types/course.rb', line 6 def provider @provider end |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/clever/types/course.rb', line 6 def uid @uid end |