Class: User

Inherits:
Object
  • Object
show all
Extended by:
Motion::Persistable
Includes:
Motion::Persistable
Defined in:
app/user.rb

Constant Summary

Constants included from Motion::Persistable

Motion::Persistable::VERSION

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Motion::Persistable

included, persistence_key

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

#usernameObject

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#nameObject



26
27
28
# File 'app/user.rb', line 26

def name
  username
end