Access W3D Hub API

This commit is contained in:
2021-11-14 12:07:09 -06:00
parent c923a8d6d4
commit b2a2a961b3
7 changed files with 301 additions and 3 deletions

17
lib/api/service_status.rb Normal file
View 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