class Plugin::DirectMessage::UserList

Public Class Methods

new() click to toggle source
Calls superclass method Gtk::UserList.new
# File core/plugin/direct_message/userlist.rb, line 5
def initialize
  super
  @dm_last_date = Hash.new
end

Public Instance Methods

gen_order(user) click to toggle source
# File core/plugin/direct_message/userlist.rb, line 10
def gen_order(user)
  @dm_last_date[user.id] || 0 end
update(update_hash) click to toggle source
# File core/plugin/direct_message/userlist.rb, line 13
def update(update_hash)
  update_hash.each do |user, last_date|
    @dm_last_date[user[:id]] = last_date.to_i
  end
  add_user(Users.new(update_hash.keys))
end