Class: Gotasku::User
- Inherits:
-
Object
- Object
- Gotasku::User
- Defined in:
- lib/gotasku/user.rb
Instance Attribute Summary collapse
-
#password ⇒ Object
readonly
Returns the value of attribute password.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username, password) ⇒ User
constructor
initializes a new user with all the info needed to create a new session.
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
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/gotasku/user.rb', line 3 def password @password end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
3 4 5 |
# File 'lib/gotasku/user.rb', line 3 def username @username end |