Class: Vines::User
- Inherits:
-
Object
- Object
- Vines::User
- Includes:
- MongoMapper::Document
- Defined in:
- lib/vines/model/user.rb
Instance Attribute Summary collapse
-
#jid ⇒ Object
Returns the value of attribute jid.
-
#roster ⇒ Object
Returns the value of attribute roster.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ User
constructor
A new instance of User.
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
#jid ⇒ Object
Returns the value of attribute jid.
13 14 15 |
# File 'lib/vines/model/user.rb', line 13 def jid @jid end |
#roster ⇒ Object
Returns the value of attribute roster.
13 14 15 |
# File 'lib/vines/model/user.rb', line 13 def roster @roster end |