Class: User Abstract
- Inherits:
-
Object
- Object
- User
- Defined in:
- app/models/user.rb
Overview
This class is abstract.
The information all Users of the system have, such as name
and e-mail
.
Direct Known Subclasses
Instance Attribute Summary (collapse)
-
- (String) email
The e-mail of the User.
-
- (String) name
The name of the User.
-
- (String) password_digest
The password digest of the User used in authentication.
-
- (UserState) state
The state of the User.
Class Method Summary (collapse)
-
+ (User) login(email, password)
Login the User in the system.
Instance Method Summary (collapse)
-
- (Boolean) signup
Sign up the User to the system.
Instance Attribute Details
- (String) email
Returns the e-mail of the User.
9 10 11 |
# File 'app/models/user.rb', line 9 def email @email end |
- (String) name
Returns the name of the User.
6 7 8 |
# File 'app/models/user.rb', line 6 def name @name end |
- (String) password_digest
Returns the password digest of the User used in authentication.
12 13 14 |
# File 'app/models/user.rb', line 12 def password_digest @password_digest end |