mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 17:22:35 +00:00
Access W3D Hub API
This commit is contained in:
17
lib/api/service_status.rb
Normal file
17
lib/api/service_status.rb
Normal file
@@ -0,0 +1,17 @@
|
||||
class W3DHub
|
||||
class Api
|
||||
class ServiceStatus
|
||||
def initialize(response)
|
||||
@data = JSON.parse(response, symbolize_names: true)
|
||||
end
|
||||
|
||||
def authentication?
|
||||
@data[:services][:authentication]
|
||||
end
|
||||
|
||||
def package_download?
|
||||
@data[:services][:packageDownload]
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user