Class: Onlyoffice::DocsIntegrationSdk::DocumentStorage::Callback::Request::Status

Inherits:
T::Enum
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/onlyoffice/docs_integration_sdk/document_storage/callback.rb

Overview

Since:

  • 0.1.0

Constant Summary collapse

Editing =

Since:

  • 0.1.0

new(1)
Save =

Since:

  • 0.1.0

new(2)
SaveError =

Since:

  • 0.1.0

new(3)
Closed =

Since:

  • 0.1.0

new(4)
ForceSave =

Since:

  • 0.1.0

new(6)
ForceSaveError =

Since:

  • 0.1.0

new(7)

Instance Method Summary collapse

Instance Method Details

#description ⇒ String

description returns the human-readable description of the status.

Returns:

  • (String)

Since:

  • 0.1.0



194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# File 'lib/onlyoffice/docs_integration_sdk/document_storage/callback.rb', line 194

def description
  case self
  when Editing
    "The document is being edited"
  when Save
    "The document is ready to be saved"
  when SaveError
    "An error occurred while saving the document"
  when Closed
    "The document was closed without changes"
  when ForceSave
    "Editing of the document continues, but the current state of the document is saved"
  when ForceSaveError
    "An error occurred while forcing the document to be saved"
  else
    # :nocov:
    # unreachable
    # :nocov:
  end
end