aspose_words_cloud 23.4.0 → 23.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +85 -1
  3. data/lib/aspose_words_cloud/api_client.rb +1 -1
  4. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -11
  5. data/lib/aspose_words_cloud/models/comment.rb +39 -39
  6. data/lib/aspose_words_cloud/models/comment_insert.rb +21 -21
  7. data/lib/aspose_words_cloud/models/comment_update.rb +21 -21
  8. data/lib/aspose_words_cloud/models/custom_xml_part.rb +14 -14
  9. data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +14 -14
  10. data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +14 -14
  11. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +10 -10
  12. data/lib/aspose_words_cloud/models/document.rb +13 -13
  13. data/lib/aspose_words_cloud/models/document_entry.rb +41 -0
  14. data/lib/aspose_words_cloud/models/document_property.rb +15 -15
  15. data/lib/aspose_words_cloud/models/document_stat_data.rb +16 -16
  16. data/lib/aspose_words_cloud/models/drawing_object.rb +41 -41
  17. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -11
  18. data/lib/aspose_words_cloud/models/footnote.rb +21 -21
  19. data/lib/aspose_words_cloud/models/form_field.rb +46 -46
  20. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +59 -59
  21. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +46 -46
  22. data/lib/aspose_words_cloud/models/form_field_text_input.rb +66 -66
  23. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -11
  24. data/lib/aspose_words_cloud/models/header_footer.rb +14 -14
  25. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +10 -10
  26. data/lib/aspose_words_cloud/models/html_save_options_data.rb +10 -10
  27. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -11
  28. data/lib/aspose_words_cloud/models/list_format.rb +15 -15
  29. data/lib/aspose_words_cloud/models/list_info.rb +35 -35
  30. data/lib/aspose_words_cloud/models/list_level.rb +76 -76
  31. data/lib/aspose_words_cloud/models/load_web_document_data.rb +14 -14
  32. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +10 -10
  33. data/lib/aspose_words_cloud/models/page_stat_data.rb +14 -14
  34. data/lib/aspose_words_cloud/models/paragraph_format.rb +21 -21
  35. data/lib/aspose_words_cloud/models/paragraph_format_base.rb +14 -14
  36. data/lib/aspose_words_cloud/models/paragraph_format_update.rb +14 -14
  37. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +10 -10
  38. data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -11
  39. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +10 -10
  40. data/lib/aspose_words_cloud/models/requests/create_document_request.rb +9 -3
  41. data/lib/aspose_words_cloud/models/requests/insert_section_online_request.rb +204 -0
  42. data/lib/aspose_words_cloud/models/requests/insert_section_request.rb +203 -0
  43. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +10 -10
  44. data/lib/aspose_words_cloud/models/save_result.rb +16 -16
  45. data/lib/aspose_words_cloud/models/search_result.rb +14 -14
  46. data/lib/aspose_words_cloud/models/section.rb +15 -15
  47. data/lib/aspose_words_cloud/models/split_document_result.rb +16 -16
  48. data/lib/aspose_words_cloud/models/structured_document_tag.rb +142 -142
  49. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +142 -142
  50. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +142 -142
  51. data/lib/aspose_words_cloud/models/style.rb +71 -71
  52. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +10 -10
  53. data/lib/aspose_words_cloud/models/table.rb +14 -14
  54. data/lib/aspose_words_cloud/models/table_row.rb +14 -14
  55. data/lib/aspose_words_cloud/models/table_row_format.rb +24 -24
  56. data/lib/aspose_words_cloud/models/text_save_options_data.rb +10 -10
  57. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +19 -19
  58. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +10 -10
  59. data/lib/aspose_words_cloud/version.rb +1 -1
  60. data/lib/aspose_words_cloud.rb +2 -0
  61. metadata +4 -2
@@ -32,17 +32,17 @@ module AsposeWordsCloud
32
32
  # Gets or sets the link to the document.
33
33
  attr_accessor :link
34
34
 
35
- # Gets or sets the custom xml part data.
36
- attr_accessor :data
37
-
38
35
  # Gets or sets the custom xml part id.
39
36
  attr_accessor :id
37
+
38
+ # Gets or sets the custom xml part data.
39
+ attr_accessor :data
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
43
  :'link' => :'Link',
44
- :'data' => :'Data',
45
- :'id' => :'Id'
44
+ :'id' => :'Id',
45
+ :'data' => :'Data'
46
46
  }
47
47
  end
48
48
 
@@ -50,8 +50,8 @@ module AsposeWordsCloud
50
50
  def self.swagger_types
51
51
  {
52
52
  :'link' => :'WordsApiLink',
53
- :'data' => :'String',
54
- :'id' => :'String'
53
+ :'id' => :'String',
54
+ :'data' => :'String'
55
55
  }
56
56
  end
57
57
 
@@ -67,13 +67,13 @@ module AsposeWordsCloud
67
67
  self.link = attributes[:'Link']
68
68
  end
69
69
 
70
- if attributes.key?(:'Data')
71
- self.data = attributes[:'Data']
72
- end
73
-
74
70
  if attributes.key?(:'Id')
75
71
  self.id = attributes[:'Id']
76
72
  end
73
+
74
+ if attributes.key?(:'Data')
75
+ self.data = attributes[:'Data']
76
+ end
77
77
  end
78
78
 
79
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,8 +95,8 @@ module AsposeWordsCloud
95
95
  return true if self.equal?(other)
96
96
  self.class == other.class &&
97
97
  link == other.link &&
98
- data == other.data &&
99
- id == other.id
98
+ id == other.id &&
99
+ data == other.data
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module AsposeWordsCloud
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Fixnum] Hash code
110
110
  def hash
111
- [link, data, id].hash
111
+ [link, id, data].hash
112
112
  end
113
113
 
114
114
  # Builds the object from hash
@@ -32,17 +32,17 @@ module AsposeWordsCloud
32
32
  # Gets or sets the link to the document.
33
33
  attr_accessor :link
34
34
 
35
- # Gets or sets the custom xml part data.
36
- attr_accessor :data
37
-
38
35
  # Gets or sets the custom xml part id.
39
36
  attr_accessor :id
37
+
38
+ # Gets or sets the custom xml part data.
39
+ attr_accessor :data
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
43
  :'link' => :'Link',
44
- :'data' => :'Data',
45
- :'id' => :'Id'
44
+ :'id' => :'Id',
45
+ :'data' => :'Data'
46
46
  }
47
47
  end
48
48
 
@@ -50,8 +50,8 @@ module AsposeWordsCloud
50
50
  def self.swagger_types
51
51
  {
52
52
  :'link' => :'WordsApiLink',
53
- :'data' => :'String',
54
- :'id' => :'String'
53
+ :'id' => :'String',
54
+ :'data' => :'String'
55
55
  }
56
56
  end
57
57
 
@@ -67,13 +67,13 @@ module AsposeWordsCloud
67
67
  self.link = attributes[:'Link']
68
68
  end
69
69
 
70
- if attributes.key?(:'Data')
71
- self.data = attributes[:'Data']
72
- end
73
-
74
70
  if attributes.key?(:'Id')
75
71
  self.id = attributes[:'Id']
76
72
  end
73
+
74
+ if attributes.key?(:'Data')
75
+ self.data = attributes[:'Data']
76
+ end
77
77
  end
78
78
 
79
79
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -95,8 +95,8 @@ module AsposeWordsCloud
95
95
  return true if self.equal?(other)
96
96
  self.class == other.class &&
97
97
  link == other.link &&
98
- data == other.data &&
99
- id == other.id
98
+ id == other.id &&
99
+ data == other.data
100
100
  end
101
101
 
102
102
  # @see the `==` method
@@ -108,7 +108,7 @@ module AsposeWordsCloud
108
108
  # Calculates hash code according to all attributes.
109
109
  # @return [Fixnum] Hash code
110
110
  def hash
111
- [link, data, id].hash
111
+ [link, id, data].hash
112
112
  end
113
113
 
114
114
  # Builds the object from hash
@@ -78,9 +78,6 @@ module AsposeWordsCloud
78
78
  # Gets or sets the password.
79
79
  attr_accessor :password
80
80
 
81
- # Gets the format of save.
82
- attr_accessor :save_format
83
-
84
81
  # Gets or sets a value indicating when False, that PictureBullet data is not saved to the output document.
85
82
  # The default value is true.
86
83
  attr_accessor :save_picture_bullet
@@ -88,6 +85,9 @@ module AsposeWordsCloud
88
85
  # Gets or sets a value indicating whether to save RoutingSlip data to output document.
89
86
  attr_accessor :save_routing_slip
90
87
 
88
+ # Gets the format of save.
89
+ attr_accessor :save_format
90
+
91
91
  class EnumAttributeValidator
92
92
  attr_reader :datatype
93
93
  attr_reader :allowable_values
@@ -128,9 +128,9 @@ module AsposeWordsCloud
128
128
  :'zip_output' => :'ZipOutput',
129
129
  :'always_compress_metafiles' => :'AlwaysCompressMetafiles',
130
130
  :'password' => :'Password',
131
- :'save_format' => :'SaveFormat',
132
131
  :'save_picture_bullet' => :'SavePictureBullet',
133
- :'save_routing_slip' => :'SaveRoutingSlip'
132
+ :'save_routing_slip' => :'SaveRoutingSlip',
133
+ :'save_format' => :'SaveFormat'
134
134
  }
135
135
  end
136
136
 
@@ -152,9 +152,9 @@ module AsposeWordsCloud
152
152
  :'zip_output' => :'BOOLEAN',
153
153
  :'always_compress_metafiles' => :'BOOLEAN',
154
154
  :'password' => :'String',
155
- :'save_format' => :'String',
156
155
  :'save_picture_bullet' => :'BOOLEAN',
157
- :'save_routing_slip' => :'BOOLEAN'
156
+ :'save_routing_slip' => :'BOOLEAN',
157
+ :'save_format' => :'String'
158
158
  }
159
159
  end
160
160
 
@@ -336,9 +336,9 @@ module AsposeWordsCloud
336
336
  zip_output == other.zip_output &&
337
337
  always_compress_metafiles == other.always_compress_metafiles &&
338
338
  password == other.password &&
339
- save_format == other.save_format &&
340
339
  save_picture_bullet == other.save_picture_bullet &&
341
- save_routing_slip == other.save_routing_slip
340
+ save_routing_slip == other.save_routing_slip &&
341
+ save_format == other.save_format
342
342
  end
343
343
 
344
344
  # @see the `==` method
@@ -350,7 +350,7 @@ module AsposeWordsCloud
350
350
  # Calculates hash code according to all attributes.
351
351
  # @return [Fixnum] Hash code
352
352
  def hash
353
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, always_compress_metafiles, password, save_format, save_picture_bullet, save_routing_slip].hash
353
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, always_compress_metafiles, password, save_picture_bullet, save_routing_slip, save_format].hash
354
354
  end
355
355
 
356
356
  # Builds the object from hash
@@ -29,6 +29,9 @@ module AsposeWordsCloud
29
29
 
30
30
  # Represents Words document DTO.
31
31
  class Document
32
+ # Gets or sets the list of links that originate from this document.
33
+ attr_accessor :links
34
+
32
35
  # Gets or sets the document properties.
33
36
  attr_accessor :document_properties
34
37
 
@@ -41,9 +44,6 @@ module AsposeWordsCloud
41
44
  # Gets or sets a value indicating whether the document contains a digital signature. This property merely informs that a digital signature is present on a document, but it does not specify whether the signature is valid or not.
42
45
  attr_accessor :is_signed
43
46
 
44
- # Gets or sets the list of links that originate from this document.
45
- attr_accessor :links
46
-
47
47
  # Gets or sets the original format of the document.
48
48
  attr_accessor :source_format
49
49
 
@@ -72,11 +72,11 @@ module AsposeWordsCloud
72
72
  # Attribute mapping from ruby-style variable name to JSON key.
73
73
  def self.attribute_map
74
74
  {
75
+ :'links' => :'Links',
75
76
  :'document_properties' => :'DocumentProperties',
76
77
  :'file_name' => :'FileName',
77
78
  :'is_encrypted' => :'IsEncrypted',
78
79
  :'is_signed' => :'IsSigned',
79
- :'links' => :'Links',
80
80
  :'source_format' => :'SourceFormat'
81
81
  }
82
82
  end
@@ -84,11 +84,11 @@ module AsposeWordsCloud
84
84
  # Attribute type mapping.
85
85
  def self.swagger_types
86
86
  {
87
+ :'links' => :'Array<Link>',
87
88
  :'document_properties' => :'DocumentProperties',
88
89
  :'file_name' => :'String',
89
90
  :'is_encrypted' => :'BOOLEAN',
90
91
  :'is_signed' => :'BOOLEAN',
91
- :'links' => :'Array<Link>',
92
92
  :'source_format' => :'String'
93
93
  }
94
94
  end
@@ -101,6 +101,12 @@ module AsposeWordsCloud
101
101
  # convert string to symbol for hash key
102
102
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
103
103
 
104
+ if attributes.key?(:'Links')
105
+ if (value = attributes[:'Links']).is_a?(Array)
106
+ self.links = value
107
+ end
108
+ end
109
+
104
110
  if attributes.key?(:'DocumentProperties')
105
111
  self.document_properties = attributes[:'DocumentProperties']
106
112
  end
@@ -117,12 +123,6 @@ module AsposeWordsCloud
117
123
  self.is_signed = attributes[:'IsSigned']
118
124
  end
119
125
 
120
- if attributes.key?(:'Links')
121
- if (value = attributes[:'Links']).is_a?(Array)
122
- self.links = value
123
- end
124
- end
125
-
126
126
  if attributes.key?(:'SourceFormat')
127
127
  self.source_format = attributes[:'SourceFormat']
128
128
  end
@@ -164,11 +164,11 @@ module AsposeWordsCloud
164
164
  def ==(other)
165
165
  return true if self.equal?(other)
166
166
  self.class == other.class &&
167
+ links == other.links &&
167
168
  document_properties == other.document_properties &&
168
169
  file_name == other.file_name &&
169
170
  is_encrypted == other.is_encrypted &&
170
171
  is_signed == other.is_signed &&
171
- links == other.links &&
172
172
  source_format == other.source_format
173
173
  end
174
174
 
@@ -181,7 +181,7 @@ module AsposeWordsCloud
181
181
  # Calculates hash code according to all attributes.
182
182
  # @return [Fixnum] Hash code
183
183
  def hash
184
- [document_properties, file_name, is_encrypted, is_signed, links, source_format].hash
184
+ [links, document_properties, file_name, is_encrypted, is_signed, source_format].hash
185
185
  end
186
186
 
187
187
  # Builds the object from hash
@@ -37,6 +37,29 @@ module AsposeWordsCloud
37
37
 
38
38
  # Gets or sets the option that controls formatting will be used: appended or destination document. Can be KeepSourceFormatting or UseDestinationStyles.
39
39
  attr_accessor :import_format_mode
40
+
41
+ class EnumAttributeValidator
42
+ attr_reader :datatype
43
+ attr_reader :allowable_values
44
+
45
+ def initialize(datatype, allowable_values)
46
+ @allowable_values = allowable_values.map do |value|
47
+ case datatype.to_s
48
+ when /Integer/i
49
+ value.to_i
50
+ when /Float/i
51
+ value.to_f
52
+ else
53
+ value
54
+ end
55
+ end
56
+ end
57
+
58
+ def valid?(value)
59
+ !value || allowable_values.include?(value)
60
+ end
61
+ end
62
+
40
63
  # Attribute mapping from ruby-style variable name to JSON key.
41
64
  def self.attribute_map
42
65
  {
@@ -86,9 +109,27 @@ module AsposeWordsCloud
86
109
  # Check to see if the all the properties in the model are valid
87
110
  # @return true if the model is valid
88
111
  def valid?
112
+ import_format_mode_validator = EnumAttributeValidator.new('String', ["UseDestinationStyles", "KeepSourceFormatting", "KeepDifferentStyles"])
113
+ return false unless import_format_mode_validator.valid?(@import_format_mode)
114
+
89
115
  return true
90
116
  end
91
117
 
118
+ # Custom attribute writer method checking allowed values (enum).
119
+ # @param [Object] import_format_mode Object to be assigned
120
+ def import_format_mode=(import_format_mode)
121
+ validator = EnumAttributeValidator.new('String', ["UseDestinationStyles", "KeepSourceFormatting", "KeepDifferentStyles"])
122
+ if import_format_mode.to_i == 0
123
+ unless validator.valid?(import_format_mode)
124
+ raise ArgumentError, "invalid value for 'import_format_mode', must be one of #{validator.allowable_values}."
125
+ end
126
+ @import_format_mode = import_format_mode
127
+ else
128
+ @import_format_mode = validator.allowable_values[import_format_mode.to_i]
129
+ end
130
+ end
131
+
132
+
92
133
  # Checks equality by comparing each attribute.
93
134
  # @param [Object] Object to be compared
94
135
  def ==(other)
@@ -32,22 +32,22 @@ module AsposeWordsCloud
32
32
  # Gets or sets the link to the document.
33
33
  attr_accessor :link
34
34
 
35
- # Gets or sets a value indicating whether the property is built-in or not.
36
- # If true the property is built-in, if false the property is custom.
37
- attr_accessor :built_in
38
-
39
35
  # Gets or sets the name of the document property.
40
36
  attr_accessor :name
41
37
 
42
38
  # Gets or sets the value of the document property.
43
39
  attr_accessor :value
40
+
41
+ # Gets or sets a value indicating whether the property is built-in or not.
42
+ # If true the property is built-in, if false the property is custom.
43
+ attr_accessor :built_in
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
47
  :'link' => :'Link',
48
- :'built_in' => :'BuiltIn',
49
48
  :'name' => :'Name',
50
- :'value' => :'Value'
49
+ :'value' => :'Value',
50
+ :'built_in' => :'BuiltIn'
51
51
  }
52
52
  end
53
53
 
@@ -55,9 +55,9 @@ module AsposeWordsCloud
55
55
  def self.swagger_types
56
56
  {
57
57
  :'link' => :'WordsApiLink',
58
- :'built_in' => :'BOOLEAN',
59
58
  :'name' => :'String',
60
- :'value' => :'String'
59
+ :'value' => :'String',
60
+ :'built_in' => :'BOOLEAN'
61
61
  }
62
62
  end
63
63
 
@@ -73,10 +73,6 @@ module AsposeWordsCloud
73
73
  self.link = attributes[:'Link']
74
74
  end
75
75
 
76
- if attributes.key?(:'BuiltIn')
77
- self.built_in = attributes[:'BuiltIn']
78
- end
79
-
80
76
  if attributes.key?(:'Name')
81
77
  self.name = attributes[:'Name']
82
78
  end
@@ -84,6 +80,10 @@ module AsposeWordsCloud
84
80
  if attributes.key?(:'Value')
85
81
  self.value = attributes[:'Value']
86
82
  end
83
+
84
+ if attributes.key?(:'BuiltIn')
85
+ self.built_in = attributes[:'BuiltIn']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -105,9 +105,9 @@ module AsposeWordsCloud
105
105
  return true if self.equal?(other)
106
106
  self.class == other.class &&
107
107
  link == other.link &&
108
- built_in == other.built_in &&
109
108
  name == other.name &&
110
- value == other.value
109
+ value == other.value &&
110
+ built_in == other.built_in
111
111
  end
112
112
 
113
113
  # @see the `==` method
@@ -119,7 +119,7 @@ module AsposeWordsCloud
119
119
  # Calculates hash code according to all attributes.
120
120
  # @return [Fixnum] Hash code
121
121
  def hash
122
- [link, built_in, name, value].hash
122
+ [link, name, value, built_in].hash
123
123
  end
124
124
 
125
125
  # Builds the object from hash
@@ -35,22 +35,22 @@ module AsposeWordsCloud
35
35
  # Gets or sets the total count of pages in the document.
36
36
  attr_accessor :page_count
37
37
 
38
- # Gets or sets the detailed statistics on all pages.
39
- attr_accessor :page_stat_data
40
-
41
38
  # Gets or sets the total count of paragraphs in the document.
42
39
  attr_accessor :paragraph_count
43
40
 
44
41
  # Gets or sets the total count of words in the document.
45
42
  attr_accessor :word_count
43
+
44
+ # Gets or sets the detailed statistics on all pages.
45
+ attr_accessor :page_stat_data
46
46
  # Attribute mapping from ruby-style variable name to JSON key.
47
47
  def self.attribute_map
48
48
  {
49
49
  :'footnotes_stat_data' => :'FootnotesStatData',
50
50
  :'page_count' => :'PageCount',
51
- :'page_stat_data' => :'PageStatData',
52
51
  :'paragraph_count' => :'ParagraphCount',
53
- :'word_count' => :'WordCount'
52
+ :'word_count' => :'WordCount',
53
+ :'page_stat_data' => :'PageStatData'
54
54
  }
55
55
  end
56
56
 
@@ -59,9 +59,9 @@ module AsposeWordsCloud
59
59
  {
60
60
  :'footnotes_stat_data' => :'FootnotesStatData',
61
61
  :'page_count' => :'Integer',
62
- :'page_stat_data' => :'Array<PageStatData>',
63
62
  :'paragraph_count' => :'Integer',
64
- :'word_count' => :'Integer'
63
+ :'word_count' => :'Integer',
64
+ :'page_stat_data' => :'Array<PageStatData>'
65
65
  }
66
66
  end
67
67
 
@@ -81,12 +81,6 @@ module AsposeWordsCloud
81
81
  self.page_count = attributes[:'PageCount']
82
82
  end
83
83
 
84
- if attributes.key?(:'PageStatData')
85
- if (value = attributes[:'PageStatData']).is_a?(Array)
86
- self.page_stat_data = value
87
- end
88
- end
89
-
90
84
  if attributes.key?(:'ParagraphCount')
91
85
  self.paragraph_count = attributes[:'ParagraphCount']
92
86
  end
@@ -94,6 +88,12 @@ module AsposeWordsCloud
94
88
  if attributes.key?(:'WordCount')
95
89
  self.word_count = attributes[:'WordCount']
96
90
  end
91
+
92
+ if attributes.key?(:'PageStatData')
93
+ if (value = attributes[:'PageStatData']).is_a?(Array)
94
+ self.page_stat_data = value
95
+ end
96
+ end
97
97
  end
98
98
 
99
99
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -116,9 +116,9 @@ module AsposeWordsCloud
116
116
  self.class == other.class &&
117
117
  footnotes_stat_data == other.footnotes_stat_data &&
118
118
  page_count == other.page_count &&
119
- page_stat_data == other.page_stat_data &&
120
119
  paragraph_count == other.paragraph_count &&
121
- word_count == other.word_count
120
+ word_count == other.word_count &&
121
+ page_stat_data == other.page_stat_data
122
122
  end
123
123
 
124
124
  # @see the `==` method
@@ -130,7 +130,7 @@ module AsposeWordsCloud
130
130
  # Calculates hash code according to all attributes.
131
131
  # @return [Fixnum] Hash code
132
132
  def hash
133
- [footnotes_stat_data, page_count, page_stat_data, paragraph_count, word_count].hash
133
+ [footnotes_stat_data, page_count, paragraph_count, word_count, page_stat_data].hash
134
134
  end
135
135
 
136
136
  # Builds the object from hash