Class: Gotasku::User

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(username, password) ⇒ User

initializes a new user with all the info needed to create a new session



7
8
9
10
# File 'lib/gotasku/user.rb', line 7

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

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



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

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



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

def username
  @username
end