Class: Michael::Models::User
- Inherits:
-
Object
- Object
- Michael::Models::User
- Defined in:
- lib/michael/models/user.rb
Instance Method Summary collapse
-
#initialize(user) ⇒ User
constructor
A new instance of User.
- #username ⇒ Object
Constructor Details
#initialize(user) ⇒ User
Returns a new instance of User.
6 7 8 |
# File 'lib/michael/models/user.rb', line 6 def initialize(user) @user = user end |
Instance Method Details
#username ⇒ Object
10 11 12 |
# File 'lib/michael/models/user.rb', line 10 def username user[:login] end |