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

21
lib/model/game_model.rb Normal file
View File

@@ -0,0 +1,21 @@
# frozen_string_literal: true
class GameModel
attr_reader :title, :platform, :author, :desc,
:play_path, :download_path, :source_path, :docs_path,
:release_count
def initialize(entry)
sw = entry['software'] || {}
latest = entry['latestRelease'] || {}
@title = sw['title'].to_s
@platform = sw['platform'].to_s
@author = sw['author'].to_s
@desc = sw['desc'].to_s
@play_path = latest['htmlFolderPath'].to_s
@download_path = latest['cartridgePath'].to_s
@source_path = latest['sourcePath'].to_s
@docs_path = latest['docsFolderPath'].to_s
@release_count = (entry['releases'] || []).length
end
end