Class: Onlyoffice::DocsIntegrationSdk::DocumentServer::Client::HealthcheckService::Error

Inherits:
T::Enum
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb

Overview

Error is an enum that represents the possible errors that can occur when using the healthcheck service.

Since:

  • 0.1.0

Constant Summary collapse

Failed =

Since:

  • 0.1.0

new(-1)

Instance Method Summary collapse

Instance Method Details

#description ⇒ String

description returns the human-readable description of the error.

Returns:

  • (String)

Since:

  • 0.1.0



64
65
66
67
68
69
70
71
72
73
# File 'lib/onlyoffice/docs_integration_sdk/document_server/client/healthcheck.rb', line 64

def description
  case self
  when Failed
    "Healthcheck failed"
  else
    # :nocov:
    # unreachable
    # :nocov:
  end
end