Class: Onlyoffice::DocsIntegrationSdk::DocumentEditor::Config

Inherits:
T::Struct
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/onlyoffice/docs_integration_sdk/document_editor/config.rb

Overview

Since:

  • 0.1.0

Defined Under Namespace

Classes: Document, DocumentType, EditorConfig, Type

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document_type: nil, height: nil, token: nil, type: nil, width: nil, document: nil, editor_config: nil) ⇒ void

Parameters:

  • document_type (DocumentType, nil) (defaults to: nil) —

    @since 0.1.0

  • height (String, nil) (defaults to: nil) —

    @since 0.1.0

  • token (String, nil) (defaults to: nil) —

    @since 0.1.0

  • type (Type, nil) (defaults to: nil) —

    @since 0.1.0

  • width (String, nil) (defaults to: nil) —

    @since 0.1.0

  • document (Document, nil) (defaults to: nil) —

    @since 0.1.0

  • editor_config (EditorConfig, nil) (defaults to: nil) —

    @since 0.1.0



# File ''

prop :document_type, T.nilable(DocumentType), name: "documentType"
prop :height, T.nilable(String), name: "height"
prop :token, T.nilable(String), name: "token"
prop :type, T.nilable(Type), name: "type"
prop :width, T.nilable(String), name: "width"
prop :document, T.nilable(Document), name: "document"
prop :editor_config, T.nilable(EditorConfig), name: "editorConfig"

Instance Attribute Details

#document ⇒ Document?

Returns:

Since:

  • 0.1.0



# File ''

prop :document, T.nilable(Document), name: "document"

#document_type ⇒ DocumentType?

Returns:

Since:

  • 0.1.0



# File ''

prop :document_type, T.nilable(DocumentType), name: "documentType"

#editor_config ⇒ EditorConfig?

Returns:

Since:

  • 0.1.0



# File ''

prop :editor_config, T.nilable(EditorConfig), name: "editorConfig"

#height ⇒ String?

Returns:

  • (String, nil)

Since:

  • 0.1.0



# File ''

prop :height, T.nilable(String), name: "height"

#token ⇒ String?

Returns:

  • (String, nil)

Since:

  • 0.1.0



# File ''

prop :token, T.nilable(String), name: "token"

#type ⇒ Type?

Returns:

Since:

  • 0.1.0



# File ''

prop :type, T.nilable(Type), name: "type"

#width ⇒ String?

Returns:

  • (String, nil)

Since:

  • 0.1.0



# File ''

prop :width, T.nilable(String), name: "width"

Class Method Details

.from_hash(hash, strict = nil) ⇒ Config

Parameters:

  • hash (T.untyped)
  • strict (T.untyped) (defaults to: nil)

Returns:

Since:

  • 0.1.0



1473
1474
1475
# File 'lib/onlyoffice/docs_integration_sdk/document_editor/config.rb', line 1473

def self.from_hash(hash, strict = nil)
  super(hash, strict)
end