Class: Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::HealthcheckService
- Inherits:
-
Service
- Object
- Service
- Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::HealthcheckService
- Includes:
- HealthcheckServing
- Defined in:
- lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb
Overview
HealthcheckService is an implementation of the HealthcheckServing interface.
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
-
#do ⇒ Response
do makes a healthcheck request to the Document Server.
Methods inherited from Service
Constructor Details
This class inherits a constructor from Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::Service
Instance Method Details
#do ⇒ Response
do makes a healthcheck request to the Document Server.
81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb', line 81 def do c, res = @client.get("healthcheck") if res.error return res end if !c.is_a?(TrueClass) res = Response.new( request: res.request, response: res.response, error: Error::Failed, ) end res end |