Class: Canvas::Models::Course

Inherits:
BaseModel show all
Defined in:
app/models/canvas/models/course.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#==, #initialize

Constructor Details

This class inherits a constructor from Canvas::Models::BaseModel

Instance Attribute Details

#account_sis_idObject

Returns the value of attribute account_sis_id.



5
6
7
# File 'app/models/canvas/models/course.rb', line 5

def 
  @account_sis_id
end

#end_dateObject

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_nameObject

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_nameObject

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_idObject

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_dateObject

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

#statusObject

Returns the value of attribute status.



5
6
7
# File 'app/models/canvas/models/course.rb', line 5

def status
  @status
end

#term_sis_idObject

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_initializeObject



7
8
9
# File 'app/models/canvas/models/course.rb', line 7

def after_initialize
  self.status ||= 'active'
end