Class: User
- Inherits:
-
Object
- Object
- User
- Extended by:
- Motion::Persistable
- Includes:
- Motion::Persistable
- Defined in:
- app/user.rb
Constant Summary
Constants included from Motion::Persistable
Instance Attribute Summary collapse
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(username) ⇒ User
constructor
A new instance of User.
- #name ⇒ Object
Methods included from Motion::Persistable
Constructor Details
#initialize(username) ⇒ User
Returns a new instance of User.
22 23 24 |
# File 'app/user.rb', line 22 def initialize(username) self.username = username end |
Instance Attribute Details
#username ⇒ Object
Returns the value of attribute username.
3 4 5 |
# File 'app/user.rb', line 3 def username @username end |
Instance Method Details
#name ⇒ Object
26 27 28 |
# File 'app/user.rb', line 26 def name username end |