Class: AsposeWordsCloud::ReplaceWithTextRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb

Overview

Request model for replace_with_text operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, range_start_identifier, range_text, range_end_identifier, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil) ⇒ ReplaceWithTextRequest

Initializes a new instance.

Parameters:

  • name

    The document.

  • range_start_identifier

    The range start identifier. Identifier is the value of the "nodeId" field, which every document node has, extended with the prefix "id". It looks like "id0.0.7". Also values like "image5" and "table3" can be used as an identifier for images and tables, where the number is an index of the image/table.

  • range_text

    Model with text for replacement.

  • range_end_identifier

    The range end identifier.

  • folder (defaults to: nil)

    Original document folder.

  • storage (defaults to: nil)

    Original document storage.

  • load_encoding (defaults to: nil)

    Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.

  • password (defaults to: nil)

    Password for opening an encrypted document.

  • dest_file_name (defaults to: nil)

    Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.



65
66
67
68
69
70
71
72
73
74
75
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 65

def initialize(name, range_start_identifier, range_text, range_end_identifier, folder = nil, storage = nil, load_encoding = nil, password = nil, dest_file_name = nil)
   self.name = name
   self.range_start_identifier = range_start_identifier
   self.range_text = range_text
   self.range_end_identifier = range_end_identifier
   self.folder = folder
   self.storage = storage
   self.load_encoding = load_encoding
   self.password = password
   self.dest_file_name = dest_file_name
end

Instance Attribute Details

#dest_file_nameObject

Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.



52
53
54
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 52

def dest_file_name
  @dest_file_name
end

#folderObject

Original document folder.



44
45
46
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 44

def folder
  @folder
end

#load_encodingObject

Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.



48
49
50
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 48

def load_encoding
  @load_encoding
end

#nameObject

The document.



36
37
38
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 36

def name
  @name
end

#passwordObject

Password for opening an encrypted document.



50
51
52
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 50

def password
  @password
end

#range_end_identifierObject

The range end identifier.



42
43
44
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 42

def range_end_identifier
  @range_end_identifier
end

#range_start_identifierObject

The range start identifier. Identifier is the value of the "nodeId" field, which every document node has, extended with the prefix "id". It looks like "id0.0.7". Also values like "image5" and "table3" can be used as an identifier for images and tables, where the number is an index of the image/table.



38
39
40
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 38

def range_start_identifier
  @range_start_identifier
end

#range_textObject

Model with text for replacement.



40
41
42
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 40

def range_text
  @range_text
end

#storageObject

Original document storage.



46
47
48
# File 'lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb', line 46

def storage
  @storage
end