Method: Vines::User#update_from
- Defined in:
- lib/vines/user.rb
#update_from(user) ⇒ Object
Update this user’s information from the given user object.
30 31 32 33 34 |
# File 'lib/vines/user.rb', line 30 def update_from(user) @name = user.name @password = user.password @roster = user.roster.map {|c| c.clone } end |