lib/mad_chatter/users.rb in mad_chatter-0.0.7 vs lib/mad_chatter/users.rb in mad_chatter-0.1.0
- old
+ new
@@ -1,10 +1,8 @@
module MadChatter
-
class Users
- # Singleton storage for all current users
class << self
def users
@users ||= {}
end
@@ -15,11 +13,11 @@
def remove(token)
MadChatter::Users.users.delete(token)
end
- def username(token)
+ def find_username_by_token(token)
MadChatter::Users.users[token]
end
def current
MadChatter::Users.users.values
@@ -29,7 +27,6 @@
MadChatter::Users.users[token].exists?
end
end
end
-
end
\ No newline at end of file