Class: Canvas::Models::Course
- Defined in:
- app/models/canvas/models/course.rb
Instance Attribute Summary collapse
-
#account_sis_id ⇒ Object
Returns the value of attribute account_sis_id.
-
#end_date ⇒ Object
Returns the value of attribute end_date.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#short_name ⇒ Object
Returns the value of attribute short_name.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
-
#start_date ⇒ Object
Returns the value of attribute start_date.
-
#status ⇒ Object
Returns the value of attribute status.
-
#term_sis_id ⇒ Object
Returns the value of attribute term_sis_id.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from Canvas::Models::BaseModel
Instance Attribute Details
#account_sis_id ⇒ Object
Returns the value of attribute account_sis_id.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def account_sis_id @account_sis_id end |
#end_date ⇒ Object
Returns the value of attribute end_date.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def end_date @end_date end |
#long_name ⇒ Object
Returns the value of attribute long_name.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def long_name @long_name end |
#short_name ⇒ Object
Returns the value of attribute short_name.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def short_name @short_name end |
#sis_id ⇒ Object
Returns the value of attribute sis_id.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def sis_id @sis_id end |
#start_date ⇒ Object
Returns the value of attribute start_date.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def start_date @start_date end |
#status ⇒ Object
Returns the value of attribute status.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def status @status end |
#term_sis_id ⇒ Object
Returns the value of attribute term_sis_id.
5 6 7 |
# File 'app/models/canvas/models/course.rb', line 5 def term_sis_id @term_sis_id end |
Instance Method Details
#after_initialize ⇒ Object
7 8 9 |
# File 'app/models/canvas/models/course.rb', line 7 def after_initialize self.status ||= 'active' end |