Class: Oode::User

Inherits:
Object
  • Object
show all
Defined in:
lib/oode/domain/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ User

Returns a new instance of User.



6
7
8
9
# File 'lib/oode/domain/user.rb', line 6

def initialize(username, password)
  @username = username
  @password = password
end

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



4
5
6
# File 'lib/oode/domain/user.rb', line 4

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



3
4
5
# File 'lib/oode/domain/user.rb', line 3

def username
  @username
end

Instance Method Details

#homeObject



11
12
13
# File 'lib/oode/domain/user.rb', line 11

def home
  "/home/#{username}"
end