Class: Michael::Models::User

Inherits:
Object
  • Object
show all
Defined in:
lib/michael/models/user.rb

Instance Method Summary collapse

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

#usernameObject



10
11
12
# File 'lib/michael/models/user.rb', line 10

def username
  user[:login]
end