mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 09:12:35 +00:00
22 lines
349 B
Ruby
22 lines
349 B
Ruby
class W3DHub
|
|
class Asterisk
|
|
class Game
|
|
attr_accessor :title, :path
|
|
|
|
def initialize(hash = nil)
|
|
return unless hash
|
|
|
|
@title = hash[:title]
|
|
@path = hash[:path]
|
|
end
|
|
|
|
def to_json(options)
|
|
{
|
|
title: @title,
|
|
path: @path
|
|
}.to_json(options)
|
|
end
|
|
end
|
|
end
|
|
end
|