Class: Canvas::Models::User

Inherits:
BaseModel show all
Defined in:
app/models/canvas/models/user.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

#avatar_urlObject

Returns the value of attribute avatar_url.



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

def avatar_url
  @avatar_url
end

#emailObject

Returns the value of attribute email.



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

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



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

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name.



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

def last_name
  @last_name
end

#login_idObject

Returns the value of attribute login_id.



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

def 
  @login_id
end

#passwordObject

Returns the value of attribute password.



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

def password
  @password
end

#sis_idObject

Returns the value of attribute sis_id.



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

def sis_id
  @sis_id
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

Instance Method Details

#after_initializeObject



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

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