mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2026-09-19 06:43:55 +00:00
20 lines
536 B
Ruby
20 lines
536 B
Ruby
module W3DHubLauncher
|
|
class Worker
|
|
class Api
|
|
class TestEvent
|
|
attr_reader :title, :image_uri, :timestamp
|
|
|
|
def initialize(data)
|
|
@title = data["name"]
|
|
# @title = data["title"]
|
|
@image_uri = data["image"]
|
|
# @app_id = data["server"]
|
|
# @start_time = Time.parse(data["starttime"]).localtime
|
|
# @end_time = Time.parse(data["endtime"]).localtime
|
|
@timestamp = Time.parse(data["dateTime"], in: "UTC").localtime
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|