Models: Message, WikiPage, Game (typed structs instead of raw hashes) Repositories: MessageBoard, OnlineUsers, WikiClient, CatalogClient bbs.rb uses attribute access (page.title, game.play_path, …) throughout Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
4 lines
129 B
Ruby
4 lines
129 B
Ruby
# frozen_string_literal: true
|
|
|
|
WikiPage = Struct.new(:id, :path, :title, :description, :created_at, :locale, keyword_init: true)
|