aspose_words_cloud 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose_words_cloud/api/words_api.rb +490 -0
- data/lib/aspose_words_cloud/api_client.rb +2 -2
- data/lib/aspose_words_cloud/models/borders_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/borders_response.rb +53 -0
- data/lib/aspose_words_cloud/models/child_node.rb +53 -0
- data/lib/aspose_words_cloud/models/office_math_object.rb +77 -0
- data/lib/aspose_words_cloud/models/office_math_object_response.rb +53 -0
- data/lib/aspose_words_cloud/models/office_math_objects_collection.rb +47 -0
- data/lib/aspose_words_cloud/models/office_math_objects_response.rb +53 -0
- data/lib/aspose_words_cloud/models/preferred_width.rb +45 -0
- data/lib/aspose_words_cloud/models/story_child_nodes.rb +1 -1
- data/lib/aspose_words_cloud/models/table.rb +63 -0
- data/lib/aspose_words_cloud/models/table_cell.rb +55 -0
- data/lib/aspose_words_cloud/models/table_properties.rb +149 -0
- data/lib/aspose_words_cloud/models/table_response.rb +53 -0
- data/lib/aspose_words_cloud/models/table_row.rb +63 -0
- data/lib/aspose_words_cloud/models/table_row_format.rb +85 -0
- data/lib/aspose_words_cloud/version.rb +1 -1
- data/lib/aspose_words_cloud.rb +15 -0
- data/test/words_tests.rb +86 -1
- metadata +17 -3
@@ -0,0 +1,77 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class OfficeMathObject < BaseObject
|
4
|
+
attr_accessor :content, :display_type, :justification, :math_object_type, :node_id, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'content' => :'Content',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'display_type' => :'DisplayType',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'justification' => :'Justification',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'math_object_type' => :'MathObjectType',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'node_id' => :'NodeId',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'link' => :'link'
|
26
|
+
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# attribute type
|
31
|
+
def self.swagger_types
|
32
|
+
{
|
33
|
+
:'content' => :'StoryChildNodes',
|
34
|
+
:'display_type' => :'String',
|
35
|
+
:'justification' => :'String',
|
36
|
+
:'math_object_type' => :'String',
|
37
|
+
:'node_id' => :'String',
|
38
|
+
:'link' => :'Link'
|
39
|
+
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
48
|
+
|
49
|
+
|
50
|
+
if attributes[:'Content']
|
51
|
+
self.content = attributes[:'Content']
|
52
|
+
end
|
53
|
+
|
54
|
+
if attributes[:'DisplayType']
|
55
|
+
self.display_type = attributes[:'DisplayType']
|
56
|
+
end
|
57
|
+
|
58
|
+
if attributes[:'Justification']
|
59
|
+
self.justification = attributes[:'Justification']
|
60
|
+
end
|
61
|
+
|
62
|
+
if attributes[:'MathObjectType']
|
63
|
+
self.math_object_type = attributes[:'MathObjectType']
|
64
|
+
end
|
65
|
+
|
66
|
+
if attributes[:'NodeId']
|
67
|
+
self.node_id = attributes[:'NodeId']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes[:'link']
|
71
|
+
self.link = attributes[:'link']
|
72
|
+
end
|
73
|
+
|
74
|
+
end
|
75
|
+
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class OfficeMathObjectResponse < BaseObject
|
4
|
+
attr_accessor :office_math_object, :code, :status
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'office_math_object' => :'OfficeMathObject',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'code' => :'Code',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'status' => :'Status'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'office_math_object' => :'OfficeMathObject',
|
25
|
+
:'code' => :'String',
|
26
|
+
:'status' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'OfficeMathObject']
|
39
|
+
self.office_math_object = attributes[:'OfficeMathObject']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Code']
|
43
|
+
self.code = attributes[:'Code']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Status']
|
47
|
+
self.status = attributes[:'Status']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class OfficeMathObjectsCollection < BaseObject
|
4
|
+
attr_accessor :list, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'list' => :'List',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'link' => :'link'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'list' => :'Array<OfficeMathObject>',
|
22
|
+
:'link' => :'Link'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'List']
|
35
|
+
if (value = attributes[:'List']).is_a?(Array)
|
36
|
+
self.list = value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
if attributes[:'link']
|
41
|
+
self.link = attributes[:'link']
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class OfficeMathObjectsResponse < BaseObject
|
4
|
+
attr_accessor :office_math_objects, :code, :status
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'office_math_objects' => :'OfficeMathObjects',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'code' => :'Code',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'status' => :'Status'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'office_math_objects' => :'OfficeMathObjectsCollection',
|
25
|
+
:'code' => :'String',
|
26
|
+
:'status' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'OfficeMathObjects']
|
39
|
+
self.office_math_objects = attributes[:'OfficeMathObjects']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Code']
|
43
|
+
self.code = attributes[:'Code']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Status']
|
47
|
+
self.status = attributes[:'Status']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,45 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class PreferredWidth < BaseObject
|
4
|
+
attr_accessor :type, :value
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'type' => :'Type',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'value' => :'Value'
|
14
|
+
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
# attribute type
|
19
|
+
def self.swagger_types
|
20
|
+
{
|
21
|
+
:'type' => :'String',
|
22
|
+
:'value' => :'Float'
|
23
|
+
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
def initialize(attributes = {})
|
28
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
29
|
+
|
30
|
+
# convert string to symbol for hash key
|
31
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
32
|
+
|
33
|
+
|
34
|
+
if attributes[:'Type']
|
35
|
+
self.type = attributes[:'Type']
|
36
|
+
end
|
37
|
+
|
38
|
+
if attributes[:'Value']
|
39
|
+
self.value = attributes[:'Value']
|
40
|
+
end
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
end
|
45
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class Table < BaseObject
|
4
|
+
attr_accessor :table_row_list, :table_properties, :node_id, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'table_row_list' => :'TableRowList',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'table_properties' => :'TableProperties',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'node_id' => :'NodeId',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'link' => :'link'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'table_row_list' => :'Array<TableRow>',
|
28
|
+
:'table_properties' => :'TableProperties',
|
29
|
+
:'node_id' => :'String',
|
30
|
+
:'link' => :'Link'
|
31
|
+
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
40
|
+
|
41
|
+
|
42
|
+
if attributes[:'TableRowList']
|
43
|
+
if (value = attributes[:'TableRowList']).is_a?(Array)
|
44
|
+
self.table_row_list = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'TableProperties']
|
49
|
+
self.table_properties = attributes[:'TableProperties']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'NodeId']
|
53
|
+
self.node_id = attributes[:'NodeId']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'link']
|
57
|
+
self.link = attributes[:'link']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class TableCell < BaseObject
|
4
|
+
attr_accessor :child_nodes, :node_id, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'child_nodes' => :'ChildNodes',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'node_id' => :'NodeId',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'link' => :'link'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'child_nodes' => :'Array<ChildNode>',
|
25
|
+
:'node_id' => :'String',
|
26
|
+
:'link' => :'Link'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'ChildNodes']
|
39
|
+
if (value = attributes[:'ChildNodes']).is_a?(Array)
|
40
|
+
self.child_nodes = value
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
if attributes[:'NodeId']
|
45
|
+
self.node_id = attributes[:'NodeId']
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'link']
|
49
|
+
self.link = attributes[:'link']
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,149 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class TableProperties < BaseObject
|
4
|
+
attr_accessor :alignment, :allow_auto_fit, :bidi, :bottom_padding, :cell_spacing, :left_indent, :left_padding, :preferred_width, :right_padding, :style_identifier, :style_name, :style_options, :text_wrapping, :top_padding, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'alignment' => :'Alignment',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'allow_auto_fit' => :'AllowAutoFit',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'bidi' => :'Bidi',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'bottom_padding' => :'BottomPadding',
|
20
|
+
|
21
|
+
#
|
22
|
+
:'cell_spacing' => :'CellSpacing',
|
23
|
+
|
24
|
+
#
|
25
|
+
:'left_indent' => :'LeftIndent',
|
26
|
+
|
27
|
+
#
|
28
|
+
:'left_padding' => :'LeftPadding',
|
29
|
+
|
30
|
+
#
|
31
|
+
:'preferred_width' => :'PreferredWidth',
|
32
|
+
|
33
|
+
#
|
34
|
+
:'right_padding' => :'RightPadding',
|
35
|
+
|
36
|
+
#
|
37
|
+
:'style_identifier' => :'StyleIdentifier',
|
38
|
+
|
39
|
+
#
|
40
|
+
:'style_name' => :'StyleName',
|
41
|
+
|
42
|
+
#
|
43
|
+
:'style_options' => :'StyleOptions',
|
44
|
+
|
45
|
+
#
|
46
|
+
:'text_wrapping' => :'TextWrapping',
|
47
|
+
|
48
|
+
#
|
49
|
+
:'top_padding' => :'TopPadding',
|
50
|
+
|
51
|
+
#
|
52
|
+
:'link' => :'link'
|
53
|
+
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
# attribute type
|
58
|
+
def self.swagger_types
|
59
|
+
{
|
60
|
+
:'alignment' => :'String',
|
61
|
+
:'allow_auto_fit' => :'BOOLEAN',
|
62
|
+
:'bidi' => :'BOOLEAN',
|
63
|
+
:'bottom_padding' => :'Float',
|
64
|
+
:'cell_spacing' => :'Float',
|
65
|
+
:'left_indent' => :'Float',
|
66
|
+
:'left_padding' => :'Float',
|
67
|
+
:'preferred_width' => :'PreferredWidth',
|
68
|
+
:'right_padding' => :'Float',
|
69
|
+
:'style_identifier' => :'String',
|
70
|
+
:'style_name' => :'String',
|
71
|
+
:'style_options' => :'String',
|
72
|
+
:'text_wrapping' => :'String',
|
73
|
+
:'top_padding' => :'Float',
|
74
|
+
:'link' => :'Link'
|
75
|
+
|
76
|
+
}
|
77
|
+
end
|
78
|
+
|
79
|
+
def initialize(attributes = {})
|
80
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
81
|
+
|
82
|
+
# convert string to symbol for hash key
|
83
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
84
|
+
|
85
|
+
|
86
|
+
if attributes[:'Alignment']
|
87
|
+
self.alignment = attributes[:'Alignment']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes[:'AllowAutoFit']
|
91
|
+
self.allow_auto_fit = attributes[:'AllowAutoFit']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes[:'Bidi']
|
95
|
+
self.bidi = attributes[:'Bidi']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes[:'BottomPadding']
|
99
|
+
self.bottom_padding = attributes[:'BottomPadding']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes[:'CellSpacing']
|
103
|
+
self.cell_spacing = attributes[:'CellSpacing']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes[:'LeftIndent']
|
107
|
+
self.left_indent = attributes[:'LeftIndent']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes[:'LeftPadding']
|
111
|
+
self.left_padding = attributes[:'LeftPadding']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes[:'PreferredWidth']
|
115
|
+
self.preferred_width = attributes[:'PreferredWidth']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes[:'RightPadding']
|
119
|
+
self.right_padding = attributes[:'RightPadding']
|
120
|
+
end
|
121
|
+
|
122
|
+
if attributes[:'StyleIdentifier']
|
123
|
+
self.style_identifier = attributes[:'StyleIdentifier']
|
124
|
+
end
|
125
|
+
|
126
|
+
if attributes[:'StyleName']
|
127
|
+
self.style_name = attributes[:'StyleName']
|
128
|
+
end
|
129
|
+
|
130
|
+
if attributes[:'StyleOptions']
|
131
|
+
self.style_options = attributes[:'StyleOptions']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes[:'TextWrapping']
|
135
|
+
self.text_wrapping = attributes[:'TextWrapping']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes[:'TopPadding']
|
139
|
+
self.top_padding = attributes[:'TopPadding']
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes[:'link']
|
143
|
+
self.link = attributes[:'link']
|
144
|
+
end
|
145
|
+
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
149
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class TableResponse < BaseObject
|
4
|
+
attr_accessor :table, :code, :status
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'table' => :'Table',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'code' => :'Code',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'status' => :'Status'
|
17
|
+
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
# attribute type
|
22
|
+
def self.swagger_types
|
23
|
+
{
|
24
|
+
:'table' => :'Table',
|
25
|
+
:'code' => :'String',
|
26
|
+
:'status' => :'String'
|
27
|
+
|
28
|
+
}
|
29
|
+
end
|
30
|
+
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
36
|
+
|
37
|
+
|
38
|
+
if attributes[:'Table']
|
39
|
+
self.table = attributes[:'Table']
|
40
|
+
end
|
41
|
+
|
42
|
+
if attributes[:'Code']
|
43
|
+
self.code = attributes[:'Code']
|
44
|
+
end
|
45
|
+
|
46
|
+
if attributes[:'Status']
|
47
|
+
self.status = attributes[:'Status']
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module AsposeWordsCloud
|
2
|
+
#
|
3
|
+
class TableRow < BaseObject
|
4
|
+
attr_accessor :table_cell_list, :row_format, :node_id, :link
|
5
|
+
# attribute mapping from ruby-style variable name to JSON key
|
6
|
+
def self.attribute_map
|
7
|
+
{
|
8
|
+
|
9
|
+
#
|
10
|
+
:'table_cell_list' => :'TableCellList',
|
11
|
+
|
12
|
+
#
|
13
|
+
:'row_format' => :'RowFormat',
|
14
|
+
|
15
|
+
#
|
16
|
+
:'node_id' => :'NodeId',
|
17
|
+
|
18
|
+
#
|
19
|
+
:'link' => :'link'
|
20
|
+
|
21
|
+
}
|
22
|
+
end
|
23
|
+
|
24
|
+
# attribute type
|
25
|
+
def self.swagger_types
|
26
|
+
{
|
27
|
+
:'table_cell_list' => :'Array<TableCell>',
|
28
|
+
:'row_format' => :'TableRowFormat',
|
29
|
+
:'node_id' => :'String',
|
30
|
+
:'link' => :'Link'
|
31
|
+
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def initialize(attributes = {})
|
36
|
+
return if !attributes.is_a?(Hash) || attributes.empty?
|
37
|
+
|
38
|
+
# convert string to symbol for hash key
|
39
|
+
attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
40
|
+
|
41
|
+
|
42
|
+
if attributes[:'TableCellList']
|
43
|
+
if (value = attributes[:'TableCellList']).is_a?(Array)
|
44
|
+
self.table_cell_list = value
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
if attributes[:'RowFormat']
|
49
|
+
self.row_format = attributes[:'RowFormat']
|
50
|
+
end
|
51
|
+
|
52
|
+
if attributes[:'NodeId']
|
53
|
+
self.node_id = attributes[:'NodeId']
|
54
|
+
end
|
55
|
+
|
56
|
+
if attributes[:'link']
|
57
|
+
self.link = attributes[:'link']
|
58
|
+
end
|
59
|
+
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
63
|
+
end
|