Class: WordsRubySdk::GetTableRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/words_ruby_sdk/models/requests/GetTableRequest.rb

Overview

Request model for get_table operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, index, folder = nil, storage = nil, load_encoding = nil, password = nil, node_path = nil) ⇒ GetTableRequest

Initializes a new instance.

Parameters:

  • name

    The document name.

  • index

    Object’s index

  • folder (defaults to: nil)

    Original document folder.

  • storage (defaults to: nil)

    File storage, which have to be used.

  • 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.

  • node_path (defaults to: nil)

    Path to node, which contains tables.



59
60
61
62
63
64
65
66
67
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 59

def initialize(name, index, folder = nil, storage = nil, load_encoding = nil, password = nil, node_path = nil)
   self.name = name
   self.index = index
   self.folder = folder
   self.storage = storage
   self.load_encoding = load_encoding
   self.password = password
   self.node_path = node_path
end

Instance Attribute Details

#folderObject

Original document folder.



40
41
42
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 40

def folder
  @folder
end

#indexObject

Object’s index



38
39
40
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 38

def index
  @index
end

#load_encodingObject

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



44
45
46
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 44

def load_encoding
  @load_encoding
end

#nameObject

The document name.



36
37
38
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 36

def name
  @name
end

#node_pathObject

Path to node, which contains tables.



48
49
50
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 48

def node_path
  @node_path
end

#passwordObject

Password for opening an encrypted document.



46
47
48
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 46

def password
  @password
end

#storageObject

File storage, which have to be used.



42
43
44
# File 'lib/words_ruby_sdk/models/requests/GetTableRequest.rb', line 42

def storage
  @storage
end