Add Model/Repository postfix to all class and file names

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-30 09:40:14 +02:00
parent 6856b073f6
commit 9ab2e09b3f
10 changed files with 31 additions and 31 deletions

View File

@@ -0,0 +1,24 @@
# frozen_string_literal: true
class OnlineUsersRepository
def initialize
@users = {}
@mu = Mutex.new
end
def add(session_id, name)
@mu.synchronize { @users[session_id] = name }
end
def remove(session_id)
@mu.synchronize { @users.delete(session_id) }
end
def snapshot
@mu.synchronize { @users.dup }
end
def count
@mu.synchronize { @users.size }
end
end