Class: Clever::Types::Classroom
- Defined in:
- lib/clever/types/classroom.rb
Instance Attribute Summary collapse
-
#course_number ⇒ Object
readonly
Returns the value of attribute course_number.
-
#grades ⇒ Object
readonly
Returns the value of attribute grades.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#period ⇒ Object
readonly
Returns the value of attribute period.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#subjects ⇒ Object
readonly
Returns the value of attribute subjects.
-
#term_end_date ⇒ Object
readonly
Returns the value of attribute term_end_date.
-
#term_id ⇒ Object
readonly
Returns the value of attribute term_id.
-
#term_name ⇒ Object
readonly
Returns the value of attribute term_name.
-
#term_start_date ⇒ Object
readonly
Returns the value of attribute term_start_date.
-
#uid ⇒ Object
readonly
Returns the value of attribute uid.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Classroom
constructor
A new instance of Classroom.
Methods inherited from Base
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_number ⇒ Object (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 |
#grades ⇒ Object (readonly)
Returns the value of attribute grades.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def grades @grades end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def name @name end |
#period ⇒ Object (readonly)
Returns the value of attribute period.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def period @period end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def provider @provider end |
#subjects ⇒ Object (readonly)
Returns the value of attribute subjects.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def subjects @subjects end |
#term_end_date ⇒ Object (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_id ⇒ Object (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_name ⇒ Object (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_date ⇒ Object (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 |
#uid ⇒ Object (readonly)
Returns the value of attribute uid.
6 7 8 |
# File 'lib/clever/types/classroom.rb', line 6 def uid @uid end |