Class: Canvas::Models::User
- Defined in:
- app/models/canvas/models/user.rb
Instance Attribute Summary collapse
-
#avatar_url ⇒ Object
Returns the value of attribute avatar_url.
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#login_id ⇒ Object
Returns the value of attribute login_id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#sis_id ⇒ Object
Returns the value of attribute sis_id.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from Canvas::Models::BaseModel
Instance Attribute Details
#avatar_url ⇒ Object
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 |
#email ⇒ Object
Returns the value of attribute email.
5 6 7 |
# File 'app/models/canvas/models/user.rb', line 5 def email @email end |
#first_name ⇒ Object
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_name ⇒ Object
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_id ⇒ Object
Returns the value of attribute login_id.
5 6 7 |
# File 'app/models/canvas/models/user.rb', line 5 def login_id @login_id end |
#password ⇒ Object
Returns the value of attribute password.
5 6 7 |
# File 'app/models/canvas/models/user.rb', line 5 def password @password end |
#sis_id ⇒ Object
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 |
#status ⇒ Object
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_initialize ⇒ Object
7 8 9 |
# File 'app/models/canvas/models/user.rb', line 7 def after_initialize self.status ||= 'active' end |