Sha256: 7dd9a106ddfd30e3f96f8818aba27604b35c3a17d85e23a79502d73bbf300e10
Contents?: true
Size: 406 Bytes
Versions: 2
Compression:
Stored size: 406 Bytes
Contents
module Vines class User include MongoMapper::Document set_collection_name "users" key :name, String #display name key :user_name,String # jid node key :password,String attr_accessor :jid,:roster def initialize(args={}) @name = args[:name] @user_name = args[:user_name] @password = args[:password] @roster = args[:roster] || [] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vines-mongomapper-0.1.1 | lib/vines/model/user.rb |
vines-mongomapper-0.1.0 | lib/vines/model/user.rb |