Class: Vines::User

Inherits:
Object
  • Object
show all
Includes:
MongoMapper::Document
Defined in:
lib/vines/model/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = {}) ⇒ User

Returns a new instance of User.



16
17
18
19
20
21
# File 'lib/vines/model/user.rb', line 16

def initialize(args={})
  @name = args[:name]
  @user_name = args[:user_name]
  @password = args[:password]
  @roster = args[:roster] || []
end

Instance Attribute Details

#jidObject

Returns the value of attribute jid.



13
14
15
# File 'lib/vines/model/user.rb', line 13

def jid
  @jid
end

#rosterObject

Returns the value of attribute roster.



13
14
15
# File 'lib/vines/model/user.rb', line 13

def roster
  @roster
end