aspose_slides_cloud 22.4.0 → 22.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (285) hide show
  1. checksums.yaml +4 -4
  2. data/Dockerfile +13 -0
  3. data/Gemfile +7 -7
  4. data/Gemfile.lock +73 -0
  5. data/LICENSE +20 -20
  6. data/README.md +129 -105
  7. data/Rakefile +8 -8
  8. data/TestData/TemplatingCVDataWithBase64.xml +22 -22
  9. data/TestData/oleObject.xlsx +0 -0
  10. data/TestData/test.pptx +0 -0
  11. data/aspose_slides_cloud.gemspec +56 -56
  12. data/docker-entrypoint.sh +7 -0
  13. data/lib/aspose_slides_cloud/api/slides_api.rb +20248 -19455
  14. data/lib/aspose_slides_cloud/api_client.rb +450 -450
  15. data/lib/aspose_slides_cloud/api_error.rb +48 -48
  16. data/lib/aspose_slides_cloud/configuration.rb +188 -188
  17. data/lib/aspose_slides_cloud/models/accent_element.rb +243 -243
  18. data/lib/aspose_slides_cloud/models/access_permissions.rb +321 -321
  19. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +248 -248
  20. data/lib/aspose_slides_cloud/models/add_master_slide.rb +263 -263
  21. data/lib/aspose_slides_cloud/models/add_shape.rb +243 -243
  22. data/lib/aspose_slides_cloud/models/add_slide.rb +273 -273
  23. data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +238 -248
  24. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
  25. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
  26. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
  27. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
  28. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
  29. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
  30. data/lib/aspose_slides_cloud/models/api_info.rb +221 -221
  31. data/lib/aspose_slides_cloud/models/arc_to_path_segment.rb +283 -283
  32. data/lib/aspose_slides_cloud/models/array_element.rb +309 -309
  33. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +289 -289
  34. data/lib/aspose_slides_cloud/models/audio_frame.rb +395 -395
  35. data/lib/aspose_slides_cloud/models/axes.rb +241 -241
  36. data/lib/aspose_slides_cloud/models/axis.rb +723 -723
  37. data/lib/aspose_slides_cloud/models/axis_type.rb +42 -0
  38. data/lib/aspose_slides_cloud/models/bar_element.rb +255 -255
  39. data/lib/aspose_slides_cloud/models/base64_input_file.rb +234 -234
  40. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
  41. data/lib/aspose_slides_cloud/models/block_element.rb +235 -235
  42. data/lib/aspose_slides_cloud/models/blur_effect.rb +231 -231
  43. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
  44. data/lib/aspose_slides_cloud/models/border_box_element.rb +313 -313
  45. data/lib/aspose_slides_cloud/models/box_element.rb +283 -283
  46. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +216 -216
  47. data/lib/aspose_slides_cloud/models/bubble_series.rb +260 -260
  48. data/lib/aspose_slides_cloud/models/camera.rb +295 -295
  49. data/lib/aspose_slides_cloud/models/chart.rb +393 -371
  50. data/lib/aspose_slides_cloud/models/chart_category.rb +275 -275
  51. data/lib/aspose_slides_cloud/models/chart_lines_format.rb +221 -221
  52. data/lib/aspose_slides_cloud/models/chart_series_group.rb +399 -0
  53. data/lib/aspose_slides_cloud/models/chart_title.rb +226 -226
  54. data/lib/aspose_slides_cloud/models/chart_wall.rb +285 -285
  55. data/lib/aspose_slides_cloud/models/chart_wall_type.rb +41 -0
  56. data/lib/aspose_slides_cloud/models/close_path_segment.rb +223 -223
  57. data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
  58. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
  59. data/lib/aspose_slides_cloud/models/color_scheme.rb +321 -321
  60. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +221 -221
  61. data/lib/aspose_slides_cloud/models/connector.rb +281 -281
  62. data/lib/aspose_slides_cloud/models/cubic_bezier_to_path_segment.rb +313 -313
  63. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +213 -213
  64. data/lib/aspose_slides_cloud/models/data_point.rb +201 -201
  65. data/lib/aspose_slides_cloud/models/delimiter_element.rb +297 -297
  66. data/lib/aspose_slides_cloud/models/disc_usage.rb +231 -231
  67. data/lib/aspose_slides_cloud/models/document.rb +261 -261
  68. data/lib/aspose_slides_cloud/models/document_properties.rb +213 -213
  69. data/lib/aspose_slides_cloud/models/document_property.rb +236 -236
  70. data/lib/aspose_slides_cloud/models/document_replace_result.rb +222 -222
  71. data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
  72. data/lib/aspose_slides_cloud/models/effect.rb +438 -438
  73. data/lib/aspose_slides_cloud/models/effect_format.rb +281 -281
  74. data/lib/aspose_slides_cloud/models/entity_exists.rb +216 -216
  75. data/lib/aspose_slides_cloud/models/error.rb +241 -241
  76. data/lib/aspose_slides_cloud/models/error_details.rb +226 -226
  77. data/lib/aspose_slides_cloud/models/export_format.rb +63 -63
  78. data/lib/aspose_slides_cloud/models/export_options.rb +232 -232
  79. data/lib/aspose_slides_cloud/models/file_version.rb +229 -229
  80. data/lib/aspose_slides_cloud/models/file_versions.rb +213 -213
  81. data/lib/aspose_slides_cloud/models/files_list.rb +213 -213
  82. data/lib/aspose_slides_cloud/models/files_upload_result.rb +225 -225
  83. data/lib/aspose_slides_cloud/models/fill_format.rb +244 -244
  84. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +250 -250
  85. data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → fill_overlay_image_effect.rb} +260 -300
  86. data/lib/aspose_slides_cloud/models/font_fallback_rule.rb +243 -243
  87. data/lib/aspose_slides_cloud/models/font_scheme.rb +231 -231
  88. data/lib/aspose_slides_cloud/models/font_set.rb +231 -231
  89. data/lib/aspose_slides_cloud/models/format_scheme.rb +249 -249
  90. data/lib/aspose_slides_cloud/models/fraction_element.rb +265 -265
  91. data/lib/aspose_slides_cloud/models/function_element.rb +243 -243
  92. data/lib/aspose_slides_cloud/models/geometry_path.rb +267 -267
  93. data/lib/aspose_slides_cloud/models/geometry_paths.rb +213 -213
  94. data/lib/aspose_slides_cloud/models/geometry_shape.rb +266 -266
  95. data/lib/aspose_slides_cloud/models/gif_export_options.rb +235 -235
  96. data/lib/aspose_slides_cloud/models/glow_effect.rb +226 -226
  97. data/lib/aspose_slides_cloud/models/gradient_fill.rb +346 -346
  98. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +226 -226
  99. data/lib/aspose_slides_cloud/models/graphical_object.rb +240 -240
  100. data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +223 -210
  101. data/lib/aspose_slides_cloud/models/group_shape.rb +250 -250
  102. data/lib/aspose_slides_cloud/models/grouping_character_element.rb +287 -287
  103. data/lib/aspose_slides_cloud/models/header_footer.rb +251 -251
  104. data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
  105. data/lib/aspose_slides_cloud/models/html5_export_options.rb +223 -223
  106. data/lib/aspose_slides_cloud/models/html_export_options.rb +381 -381
  107. data/lib/aspose_slides_cloud/models/hyperlink.rb +352 -352
  108. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +201 -201
  109. data/lib/aspose_slides_cloud/models/image.rb +241 -241
  110. data/lib/aspose_slides_cloud/models/image_export_format.rb +43 -43
  111. data/lib/aspose_slides_cloud/models/image_export_options.rb +291 -291
  112. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +222 -222
  113. data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
  114. data/lib/aspose_slides_cloud/models/images.rb +213 -213
  115. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +256 -256
  116. data/lib/aspose_slides_cloud/models/input.rb +231 -231
  117. data/lib/aspose_slides_cloud/models/input_file.rb +254 -254
  118. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +228 -228
  119. data/lib/aspose_slides_cloud/models/layout_slide.rb +282 -282
  120. data/lib/aspose_slides_cloud/models/layout_slides.rb +213 -213
  121. data/lib/aspose_slides_cloud/models/left_sub_superscript_element.rb +253 -253
  122. data/lib/aspose_slides_cloud/models/legend.rb +335 -335
  123. data/lib/aspose_slides_cloud/models/light_rig.rb +297 -297
  124. data/lib/aspose_slides_cloud/models/limit_element.rb +253 -253
  125. data/lib/aspose_slides_cloud/models/line_format.rb +415 -415
  126. data/lib/aspose_slides_cloud/models/line_to_path_segment.rb +253 -253
  127. data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
  128. data/lib/aspose_slides_cloud/models/master_slide.rb +235 -235
  129. data/lib/aspose_slides_cloud/models/master_slides.rb +213 -213
  130. data/lib/aspose_slides_cloud/models/math_element.rb +244 -244
  131. data/lib/aspose_slides_cloud/models/math_paragraph.rb +257 -257
  132. data/lib/aspose_slides_cloud/models/matrix_element.rb +341 -341
  133. data/lib/aspose_slides_cloud/models/merge.rb +235 -235
  134. data/lib/aspose_slides_cloud/models/merging_source.rb +223 -223
  135. data/lib/aspose_slides_cloud/models/move_to_path_segment.rb +253 -253
  136. data/lib/aspose_slides_cloud/models/nary_operator_element.rb +315 -315
  137. data/lib/aspose_slides_cloud/models/no_fill.rb +223 -223
  138. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +221 -221
  139. data/lib/aspose_slides_cloud/models/notes_slide.rb +221 -221
  140. data/lib/aspose_slides_cloud/models/notes_slide_export_format.rb +61 -43
  141. data/lib/aspose_slides_cloud/models/notes_slide_header_footer.rb +271 -271
  142. data/lib/aspose_slides_cloud/models/object_exist.rb +231 -231
  143. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +335 -335
  144. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +234 -214
  145. data/lib/aspose_slides_cloud/models/one_value_series.rb +330 -258
  146. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +213 -213
  147. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +256 -256
  148. data/lib/aspose_slides_cloud/models/output_file.rb +244 -244
  149. data/lib/aspose_slides_cloud/models/paragraph.rb +531 -531
  150. data/lib/aspose_slides_cloud/models/paragraphs.rb +213 -213
  151. data/lib/aspose_slides_cloud/models/path_input_file.rb +244 -244
  152. data/lib/aspose_slides_cloud/models/path_output_file.rb +243 -243
  153. data/lib/aspose_slides_cloud/models/path_segment.rb +244 -244
  154. data/lib/aspose_slides_cloud/models/pattern_fill.rb +270 -270
  155. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +465 -465
  156. data/lib/aspose_slides_cloud/models/picture_fill.rb +367 -355
  157. data/lib/aspose_slides_cloud/models/picture_frame.rb +251 -251
  158. data/lib/aspose_slides_cloud/models/pipeline.rb +223 -223
  159. data/lib/aspose_slides_cloud/models/placeholder.rb +329 -329
  160. data/lib/aspose_slides_cloud/models/placeholders.rb +213 -213
  161. data/lib/aspose_slides_cloud/models/plot_area.rb +315 -315
  162. data/lib/aspose_slides_cloud/models/portion.rb +653 -653
  163. data/lib/aspose_slides_cloud/models/portion_format.rb +633 -633
  164. data/lib/aspose_slides_cloud/models/portions.rb +213 -213
  165. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +247 -247
  166. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +277 -277
  167. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +225 -225
  168. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +290 -290
  169. data/lib/aspose_slides_cloud/models/protection_properties.rb +271 -271
  170. data/lib/aspose_slides_cloud/models/quadratic_bezier_to_path_segment.rb +283 -283
  171. data/lib/aspose_slides_cloud/models/radical_element.rb +253 -253
  172. data/lib/aspose_slides_cloud/models/reflection_effect.rb +445 -445
  173. data/lib/aspose_slides_cloud/models/remove_shape.rb +233 -233
  174. data/lib/aspose_slides_cloud/models/remove_slide.rb +238 -238
  175. data/lib/aspose_slides_cloud/models/reorder_slide.rb +253 -253
  176. data/lib/aspose_slides_cloud/models/replace_text.rb +273 -273
  177. data/lib/aspose_slides_cloud/models/request_input_file.rb +239 -239
  178. data/lib/aspose_slides_cloud/models/reset_slide.rb +238 -238
  179. data/lib/aspose_slides_cloud/models/resource_base.rb +223 -223
  180. data/lib/aspose_slides_cloud/models/resource_uri.rb +261 -241
  181. data/lib/aspose_slides_cloud/models/response_output_file.rb +223 -223
  182. data/lib/aspose_slides_cloud/models/right_sub_superscript_element.rb +263 -263
  183. data/lib/aspose_slides_cloud/models/save.rb +270 -270
  184. data/lib/aspose_slides_cloud/models/save_shape.rb +280 -280
  185. data/lib/aspose_slides_cloud/models/save_slide.rb +305 -305
  186. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +229 -229
  187. data/lib/aspose_slides_cloud/models/scatter_series.rb +250 -250
  188. data/lib/aspose_slides_cloud/models/section.rb +238 -238
  189. data/lib/aspose_slides_cloud/models/section_zoom_frame.rb +255 -255
  190. data/lib/aspose_slides_cloud/models/sections.rb +213 -213
  191. data/lib/aspose_slides_cloud/models/series.rb +386 -386
  192. data/lib/aspose_slides_cloud/models/series_marker.rb +285 -285
  193. data/lib/aspose_slides_cloud/models/shape.rb +271 -271
  194. data/lib/aspose_slides_cloud/models/shape_base.rb +399 -399
  195. data/lib/aspose_slides_cloud/models/shape_bevel.rb +265 -265
  196. data/lib/aspose_slides_cloud/models/shape_export_format.rb +44 -44
  197. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +275 -275
  198. data/lib/aspose_slides_cloud/models/shape_thumbnail_bounds.rb +41 -41
  199. data/lib/aspose_slides_cloud/models/shape_type.rb +54 -54
  200. data/lib/aspose_slides_cloud/models/shapes.rb +213 -213
  201. data/lib/aspose_slides_cloud/models/shapes_alignment_type.rb +46 -46
  202. data/lib/aspose_slides_cloud/models/slide.rb +326 -326
  203. data/lib/aspose_slides_cloud/models/slide_animation.rb +225 -225
  204. data/lib/aspose_slides_cloud/models/slide_background.rb +270 -270
  205. data/lib/aspose_slides_cloud/models/slide_comment.rb +227 -227
  206. data/lib/aspose_slides_cloud/models/slide_comment_base.rb +286 -286
  207. data/lib/aspose_slides_cloud/models/slide_comments.rb +213 -213
  208. data/lib/aspose_slides_cloud/models/slide_export_format.rb +61 -60
  209. data/lib/aspose_slides_cloud/models/slide_modern_comment.rb +269 -269
  210. data/lib/aspose_slides_cloud/models/slide_properties.rb +319 -319
  211. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +227 -227
  212. data/lib/aspose_slides_cloud/models/slides.rb +213 -213
  213. data/lib/aspose_slides_cloud/models/smart_art.rb +348 -348
  214. data/lib/aspose_slides_cloud/models/smart_art_node.rb +307 -297
  215. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +241 -241
  216. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +216 -216
  217. data/lib/aspose_slides_cloud/models/solid_fill.rb +233 -233
  218. data/lib/aspose_slides_cloud/models/special_slide_type.rb +41 -41
  219. data/lib/aspose_slides_cloud/models/split_document_result.rb +213 -213
  220. data/lib/aspose_slides_cloud/models/storage_exist.rb +216 -216
  221. data/lib/aspose_slides_cloud/models/storage_file.rb +261 -261
  222. data/lib/aspose_slides_cloud/models/subscript_element.rb +243 -243
  223. data/lib/aspose_slides_cloud/models/summary_zoom_frame.rb +274 -274
  224. data/lib/aspose_slides_cloud/models/summary_zoom_section.rb +266 -266
  225. data/lib/aspose_slides_cloud/models/superscript_element.rb +243 -243
  226. data/lib/aspose_slides_cloud/models/svg_export_options.rb +339 -339
  227. data/lib/aspose_slides_cloud/models/swf_export_options.rb +449 -449
  228. data/lib/aspose_slides_cloud/models/table.rb +356 -356
  229. data/lib/aspose_slides_cloud/models/table_cell.rb +427 -427
  230. data/lib/aspose_slides_cloud/models/table_column.rb +216 -216
  231. data/lib/aspose_slides_cloud/models/table_row.rb +243 -243
  232. data/lib/aspose_slides_cloud/models/task.rb +244 -244
  233. data/lib/aspose_slides_cloud/models/text_bounds.rb +261 -261
  234. data/lib/aspose_slides_cloud/models/text_element.rb +233 -233
  235. data/lib/aspose_slides_cloud/models/text_frame_format.rb +255 -255
  236. data/lib/aspose_slides_cloud/models/text_item.rb +221 -221
  237. data/lib/aspose_slides_cloud/models/text_items.rb +213 -213
  238. data/lib/aspose_slides_cloud/models/theme.rb +241 -241
  239. data/lib/aspose_slides_cloud/models/three_d_format.rb +335 -335
  240. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +375 -375
  241. data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
  242. data/lib/aspose_slides_cloud/models/update_background.rb +245 -245
  243. data/lib/aspose_slides_cloud/models/update_shape.rb +243 -243
  244. data/lib/aspose_slides_cloud/models/video_export_options.rb +289 -289
  245. data/lib/aspose_slides_cloud/models/video_frame.rb +345 -335
  246. data/lib/aspose_slides_cloud/models/view_properties.rb +361 -361
  247. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +213 -213
  248. data/lib/aspose_slides_cloud/models/xps_export_options.rb +233 -233
  249. data/lib/aspose_slides_cloud/models/xy_series.rb +255 -255
  250. data/lib/aspose_slides_cloud/models/zoom_frame.rb +255 -255
  251. data/lib/aspose_slides_cloud/models/zoom_object.rb +301 -301
  252. data/lib/aspose_slides_cloud/type_registry.rb +464 -432
  253. data/lib/aspose_slides_cloud/version.rb +25 -25
  254. data/lib/aspose_slides_cloud.rb +286 -268
  255. data/spec/api/slides_api_spec.rb +55582 -53418
  256. data/spec/spec_helper.rb +122 -122
  257. data/spec/spec_utils.rb +188 -188
  258. data/spec/use_cases/abstract_class_spec.rb +38 -38
  259. data/spec/use_cases/animation_spec.rb +193 -193
  260. data/spec/use_cases/auth_spec.rb +91 -91
  261. data/spec/use_cases/chart_spec.rb +291 -291
  262. data/spec/use_cases/convert_spec.rb +154 -154
  263. data/spec/use_cases/create_spec.rb +101 -101
  264. data/spec/use_cases/header_footer_spec.rb +78 -78
  265. data/spec/use_cases/hyperlink_spec.rb +92 -92
  266. data/spec/use_cases/image_spec.rb +102 -102
  267. data/spec/use_cases/layout_slide_spec.rb +190 -190
  268. data/spec/use_cases/master_slide_spec.rb +190 -190
  269. data/spec/use_cases/math_spec.rb +163 -163
  270. data/spec/use_cases/merge_spec.rb +105 -105
  271. data/spec/use_cases/notes_slide_spec.rb +172 -172
  272. data/spec/use_cases/nullable_field_spec.rb +86 -86
  273. data/spec/use_cases/pipeline_spec.rb +61 -61
  274. data/spec/use_cases/property_spec.rb +177 -177
  275. data/spec/use_cases/section_spec.rb +104 -104
  276. data/spec/use_cases/shape_format_spec.rb +126 -126
  277. data/spec/use_cases/shape_spec.rb +397 -397
  278. data/spec/use_cases/split_spec.rb +88 -88
  279. data/spec/use_cases/text_spec.rb +74 -74
  280. data/spec/use_cases/timeout_spec.rb +44 -44
  281. data/spec/use_cases/watermark_spec.rb +158 -158
  282. data/testConfig.json +7 -7
  283. data/testRules.json +546 -527
  284. metadata +31 -10
  285. data/.gitignore +0 -1
@@ -1,355 +1,367 @@
1
- =begin
2
- Copyright (c) 2019 Aspose Pty Ltd
3
-
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be included in all
12
- copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
- SOFTWARE.
21
- =end
22
-
23
- require 'date'
24
-
25
- module AsposeSlidesCloud
26
- # Picture fill.
27
- class PictureFill < FillFormat
28
- # Percentage of image height that is cropped from the bottom.
29
- attr_accessor :crop_bottom
30
-
31
- # Percentage of image height that is cropped from the left.
32
- attr_accessor :crop_left
33
-
34
- # Percentage of image height that is cropped from the right.
35
- attr_accessor :crop_right
36
-
37
- # Percentage of image height that is cropped from the top.
38
- attr_accessor :crop_top
39
-
40
- # Picture resolution.
41
- attr_accessor :dpi
42
-
43
- # Internal image link.
44
- attr_accessor :image
45
-
46
- # Base 64 image data.
47
- attr_accessor :base64_data
48
-
49
- # SVG image data.
50
- attr_accessor :svg_data
51
-
52
- # Fill mode.
53
- attr_accessor :picture_fill_mode
54
-
55
- class EnumAttributeValidator
56
- attr_reader :datatype
57
- attr_reader :allowable_values
58
-
59
- def initialize(datatype, allowable_values)
60
- @allowable_values = allowable_values.map do |value|
61
- case datatype.to_s
62
- when /Integer/i
63
- value.to_i
64
- when /Float/i
65
- value.to_f
66
- else
67
- value
68
- end
69
- end
70
- end
71
-
72
- def valid?(value)
73
- !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
74
- end
75
- end
76
-
77
- # Attribute mapping from ruby-style variable name to JSON key.
78
- def self.attribute_map
79
- super.merge({
80
- :'crop_bottom' => :'CropBottom',
81
- :'crop_left' => :'CropLeft',
82
- :'crop_right' => :'CropRight',
83
- :'crop_top' => :'CropTop',
84
- :'dpi' => :'Dpi',
85
- :'image' => :'Image',
86
- :'base64_data' => :'Base64Data',
87
- :'svg_data' => :'SvgData',
88
- :'picture_fill_mode' => :'PictureFillMode',
89
- })
90
- end
91
-
92
- # Attribute type mapping.
93
- def self.swagger_types
94
- super.merge({
95
- :'crop_bottom' => :'Float',
96
- :'crop_left' => :'Float',
97
- :'crop_right' => :'Float',
98
- :'crop_top' => :'Float',
99
- :'dpi' => :'Integer',
100
- :'image' => :'ResourceUri',
101
- :'base64_data' => :'String',
102
- :'svg_data' => :'String',
103
- :'picture_fill_mode' => :'String',
104
- })
105
- end
106
-
107
- # Initializes the object
108
- # @param [Hash] attributes Model attributes in the form of hash
109
- def initialize(attributes = {})
110
- super
111
-
112
- if attributes.has_key?(:'CropBottom')
113
- self.crop_bottom = attributes[:'CropBottom']
114
- end
115
-
116
- if attributes.has_key?(:'CropLeft')
117
- self.crop_left = attributes[:'CropLeft']
118
- end
119
-
120
- if attributes.has_key?(:'CropRight')
121
- self.crop_right = attributes[:'CropRight']
122
- end
123
-
124
- if attributes.has_key?(:'CropTop')
125
- self.crop_top = attributes[:'CropTop']
126
- end
127
-
128
- if attributes.has_key?(:'Dpi')
129
- self.dpi = attributes[:'Dpi']
130
- end
131
-
132
- if attributes.has_key?(:'Image')
133
- self.image = attributes[:'Image']
134
- end
135
-
136
- if attributes.has_key?(:'Base64Data')
137
- self.base64_data = attributes[:'Base64Data']
138
- end
139
-
140
- if attributes.has_key?(:'SvgData')
141
- self.svg_data = attributes[:'SvgData']
142
- end
143
-
144
- if attributes.has_key?(:'PictureFillMode')
145
- self.picture_fill_mode = attributes[:'PictureFillMode']
146
- end
147
- self.type = "Picture"
148
- end
149
-
150
- # Show invalid properties with the reasons. Usually used together with valid?
151
- # @return Array for valid properties with the reasons
152
- def list_invalid_properties
153
- invalid_properties = super
154
- if @crop_bottom.nil?
155
- invalid_properties.push('invalid value for "crop_bottom", crop_bottom cannot be nil.')
156
- end
157
-
158
- if @crop_left.nil?
159
- invalid_properties.push('invalid value for "crop_left", crop_left cannot be nil.')
160
- end
161
-
162
- if @crop_right.nil?
163
- invalid_properties.push('invalid value for "crop_right", crop_right cannot be nil.')
164
- end
165
-
166
- if @crop_top.nil?
167
- invalid_properties.push('invalid value for "crop_top", crop_top cannot be nil.')
168
- end
169
-
170
- if @dpi.nil?
171
- invalid_properties.push('invalid value for "dpi", dpi cannot be nil.')
172
- end
173
-
174
- if @picture_fill_mode.nil?
175
- invalid_properties.push('invalid value for "picture_fill_mode", picture_fill_mode cannot be nil.')
176
- end
177
-
178
- invalid_properties
179
- end
180
-
181
- # Check to see if the all the properties in the model are valid
182
- # @return true if the model is valid
183
- def valid?
184
- return false if !super
185
- return false if @crop_bottom.nil?
186
- return false if @crop_left.nil?
187
- return false if @crop_right.nil?
188
- return false if @crop_top.nil?
189
- return false if @dpi.nil?
190
- return false if @picture_fill_mode.nil?
191
- picture_fill_mode_validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
192
- return false unless picture_fill_mode_validator.valid?(@picture_fill_mode)
193
- true
194
- end
195
-
196
- # Custom attribute writer method checking allowed values (enum).
197
- # @param [Object] picture_fill_mode Object to be assigned
198
- def picture_fill_mode=(picture_fill_mode)
199
- validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
200
- unless validator.valid?(picture_fill_mode)
201
- fail ArgumentError, 'invalid value for "picture_fill_mode", must be one of #{validator.allowable_values}.'
202
- end
203
- @picture_fill_mode = picture_fill_mode
204
- end
205
-
206
- # Checks equality by comparing each attribute.
207
- # @param [Object] Object to be compared
208
- def ==(o)
209
- return true if self.equal?(o)
210
- self.class == o.class &&
211
- type == o.type &&
212
- crop_bottom == o.crop_bottom &&
213
- crop_left == o.crop_left &&
214
- crop_right == o.crop_right &&
215
- crop_top == o.crop_top &&
216
- dpi == o.dpi &&
217
- image == o.image &&
218
- base64_data == o.base64_data &&
219
- svg_data == o.svg_data &&
220
- picture_fill_mode == o.picture_fill_mode
221
- end
222
-
223
- # @see the `==` method
224
- # @param [Object] Object to be compared
225
- def eql?(o)
226
- self == o
227
- end
228
-
229
- # Calculates hash code according to all attributes.
230
- # @return [Fixnum] Hash code
231
- def hash
232
- [type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode].hash
233
- end
234
-
235
- # Builds the object from hash
236
- # @param [Hash] attributes Model attributes in the form of hash
237
- # @return [Object] Returns the model itself
238
- def build_from_hash(attributes)
239
- return nil unless attributes.is_a?(Hash)
240
- self.class.swagger_types.each_pair do |key, type|
241
- mapKey = self.class.attribute_map[key]
242
- if !mapKey.nil?
243
- val = attributes[mapKey]
244
- if val.nil?
245
- mapKeyString = mapKey.to_s
246
- mapKeyString[0] = mapKeyString[0].downcase
247
- mapKey = mapKeyString.to_sym
248
- val = attributes[mapKey]
249
- end
250
- if !val.nil?
251
- if type =~ /\AArray<(.*)>/i
252
- # check to ensure the input is an array given that the the attribute
253
- # is documented as an array but the input is not
254
- if val.is_a?(Array)
255
- self.send("#{key}=", val.map { |v| _deserialize($1, v) })
256
- end
257
- else
258
- self.send("#{key}=", _deserialize(type, val))
259
- end
260
- end
261
- end
262
- end
263
-
264
- self
265
- end
266
-
267
- # Deserializes the data based on type
268
- # @param string type Data type
269
- # @param string value Value to be deserialized
270
- # @return [Object] Deserialized data
271
- def _deserialize(type, value)
272
- case type.to_sym
273
- when :DateTime
274
- DateTime.parse(value)
275
- when :Date
276
- Date.parse(value)
277
- when :String
278
- value.to_s
279
- when :Integer
280
- value.to_i
281
- when :Float
282
- value.to_f
283
- when :BOOLEAN
284
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
285
- true
286
- else
287
- false
288
- end
289
- when :Object
290
- # generic object (usually a Hash), return directly
291
- value
292
- when /\AArray<(?<inner_type>.+)>\z/
293
- inner_type = Regexp.last_match[:inner_type]
294
- value.map { |v| _deserialize(inner_type, v) }
295
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
296
- k_type = Regexp.last_match[:k_type]
297
- v_type = Regexp.last_match[:v_type]
298
- {}.tap do |hash|
299
- value.each do |k, v|
300
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
301
- end
302
- end
303
- else # model
304
- registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
305
- if registry_type
306
- type = registry_type
307
- end
308
- temp_model = AsposeSlidesCloud.const_get(type).new
309
- temp_model.build_from_hash(value)
310
- end
311
- end
312
-
313
- # Returns the string representation of the object
314
- # @return [String] String presentation of the object
315
- def to_s
316
- to_hash.to_s
317
- end
318
-
319
- # to_body is an alias to to_hash (backward compatibility)
320
- # @return [Hash] Returns the object in the form of hash
321
- def to_body
322
- to_hash
323
- end
324
-
325
- # Returns the object in the form of hash
326
- # @return [Hash] Returns the object in the form of hash
327
- def to_hash
328
- hash = {}
329
- self.class.attribute_map.each_pair do |attr, param|
330
- value = self.send(attr)
331
- next if value.nil?
332
- hash[param] = _to_hash(value)
333
- end
334
- hash
335
- end
336
-
337
- # Outputs non-array value in the form of hash
338
- # For object, use to_hash. Otherwise, just return the value
339
- # @param [Object] value Any valid value
340
- # @return [Hash] Returns the value in the form of hash
341
- def _to_hash(value)
342
- if value.is_a?(Array)
343
- value.compact.map { |v| _to_hash(v) }
344
- elsif value.is_a?(Hash)
345
- {}.tap do |hash|
346
- value.each { |k, v| hash[k] = _to_hash(v) }
347
- end
348
- elsif value.respond_to? :to_hash
349
- value.to_hash
350
- else
351
- value
352
- end
353
- end
354
- end
355
- end
1
+ =begin
2
+ Copyright (c) 2019 Aspose Pty Ltd
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be included in all
12
+ copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ SOFTWARE.
21
+ =end
22
+
23
+ require 'date'
24
+
25
+ module AsposeSlidesCloud
26
+ # Picture fill.
27
+ class PictureFill < FillFormat
28
+ # Percentage of image height that is cropped from the bottom.
29
+ attr_accessor :crop_bottom
30
+
31
+ # Percentage of image height that is cropped from the left.
32
+ attr_accessor :crop_left
33
+
34
+ # Percentage of image height that is cropped from the right.
35
+ attr_accessor :crop_right
36
+
37
+ # Percentage of image height that is cropped from the top.
38
+ attr_accessor :crop_top
39
+
40
+ # Picture resolution.
41
+ attr_accessor :dpi
42
+
43
+ # Internal image link.
44
+ attr_accessor :image
45
+
46
+ # Base 64 image data.
47
+ attr_accessor :base64_data
48
+
49
+ # SVG image data.
50
+ attr_accessor :svg_data
51
+
52
+ # Fill mode.
53
+ attr_accessor :picture_fill_mode
54
+
55
+ # Image transform effects.
56
+ attr_accessor :image_transform_list
57
+
58
+ class EnumAttributeValidator
59
+ attr_reader :datatype
60
+ attr_reader :allowable_values
61
+
62
+ def initialize(datatype, allowable_values)
63
+ @allowable_values = allowable_values.map do |value|
64
+ case datatype.to_s
65
+ when /Integer/i
66
+ value.to_i
67
+ when /Float/i
68
+ value.to_f
69
+ else
70
+ value
71
+ end
72
+ end
73
+ end
74
+
75
+ def valid?(value)
76
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
77
+ end
78
+ end
79
+
80
+ # Attribute mapping from ruby-style variable name to JSON key.
81
+ def self.attribute_map
82
+ super.merge({
83
+ :'crop_bottom' => :'CropBottom',
84
+ :'crop_left' => :'CropLeft',
85
+ :'crop_right' => :'CropRight',
86
+ :'crop_top' => :'CropTop',
87
+ :'dpi' => :'Dpi',
88
+ :'image' => :'Image',
89
+ :'base64_data' => :'Base64Data',
90
+ :'svg_data' => :'SvgData',
91
+ :'picture_fill_mode' => :'PictureFillMode',
92
+ :'image_transform_list' => :'ImageTransformList',
93
+ })
94
+ end
95
+
96
+ # Attribute type mapping.
97
+ def self.swagger_types
98
+ super.merge({
99
+ :'crop_bottom' => :'Float',
100
+ :'crop_left' => :'Float',
101
+ :'crop_right' => :'Float',
102
+ :'crop_top' => :'Float',
103
+ :'dpi' => :'Integer',
104
+ :'image' => :'ResourceUri',
105
+ :'base64_data' => :'String',
106
+ :'svg_data' => :'String',
107
+ :'picture_fill_mode' => :'String',
108
+ :'image_transform_list' => :'Array<ImageTransformEffect>',
109
+ })
110
+ end
111
+
112
+ # Initializes the object
113
+ # @param [Hash] attributes Model attributes in the form of hash
114
+ def initialize(attributes = {})
115
+ super
116
+
117
+ if attributes.has_key?(:'CropBottom')
118
+ self.crop_bottom = attributes[:'CropBottom']
119
+ end
120
+
121
+ if attributes.has_key?(:'CropLeft')
122
+ self.crop_left = attributes[:'CropLeft']
123
+ end
124
+
125
+ if attributes.has_key?(:'CropRight')
126
+ self.crop_right = attributes[:'CropRight']
127
+ end
128
+
129
+ if attributes.has_key?(:'CropTop')
130
+ self.crop_top = attributes[:'CropTop']
131
+ end
132
+
133
+ if attributes.has_key?(:'Dpi')
134
+ self.dpi = attributes[:'Dpi']
135
+ end
136
+
137
+ if attributes.has_key?(:'Image')
138
+ self.image = attributes[:'Image']
139
+ end
140
+
141
+ if attributes.has_key?(:'Base64Data')
142
+ self.base64_data = attributes[:'Base64Data']
143
+ end
144
+
145
+ if attributes.has_key?(:'SvgData')
146
+ self.svg_data = attributes[:'SvgData']
147
+ end
148
+
149
+ if attributes.has_key?(:'PictureFillMode')
150
+ self.picture_fill_mode = attributes[:'PictureFillMode']
151
+ end
152
+
153
+ if attributes.has_key?(:'ImageTransformList')
154
+ if (value = attributes[:'ImageTransformList']).is_a?(Array)
155
+ self.image_transform_list = value
156
+ end
157
+ end
158
+ self.type = "Picture"
159
+ end
160
+
161
+ # Show invalid properties with the reasons. Usually used together with valid?
162
+ # @return Array for valid properties with the reasons
163
+ def list_invalid_properties
164
+ invalid_properties = super
165
+ if @crop_bottom.nil?
166
+ invalid_properties.push('invalid value for "crop_bottom", crop_bottom cannot be nil.')
167
+ end
168
+
169
+ if @crop_left.nil?
170
+ invalid_properties.push('invalid value for "crop_left", crop_left cannot be nil.')
171
+ end
172
+
173
+ if @crop_right.nil?
174
+ invalid_properties.push('invalid value for "crop_right", crop_right cannot be nil.')
175
+ end
176
+
177
+ if @crop_top.nil?
178
+ invalid_properties.push('invalid value for "crop_top", crop_top cannot be nil.')
179
+ end
180
+
181
+ if @dpi.nil?
182
+ invalid_properties.push('invalid value for "dpi", dpi cannot be nil.')
183
+ end
184
+
185
+ if @picture_fill_mode.nil?
186
+ invalid_properties.push('invalid value for "picture_fill_mode", picture_fill_mode cannot be nil.')
187
+ end
188
+
189
+ invalid_properties
190
+ end
191
+
192
+ # Check to see if the all the properties in the model are valid
193
+ # @return true if the model is valid
194
+ def valid?
195
+ return false if !super
196
+ return false if @crop_bottom.nil?
197
+ return false if @crop_left.nil?
198
+ return false if @crop_right.nil?
199
+ return false if @crop_top.nil?
200
+ return false if @dpi.nil?
201
+ return false if @picture_fill_mode.nil?
202
+ picture_fill_mode_validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
203
+ return false unless picture_fill_mode_validator.valid?(@picture_fill_mode)
204
+ true
205
+ end
206
+
207
+ # Custom attribute writer method checking allowed values (enum).
208
+ # @param [Object] picture_fill_mode Object to be assigned
209
+ def picture_fill_mode=(picture_fill_mode)
210
+ validator = EnumAttributeValidator.new('String', ['Tile', 'Stretch'])
211
+ unless validator.valid?(picture_fill_mode)
212
+ fail ArgumentError, 'invalid value for "picture_fill_mode", must be one of #{validator.allowable_values}.'
213
+ end
214
+ @picture_fill_mode = picture_fill_mode
215
+ end
216
+
217
+ # Checks equality by comparing each attribute.
218
+ # @param [Object] Object to be compared
219
+ def ==(o)
220
+ return true if self.equal?(o)
221
+ self.class == o.class &&
222
+ type == o.type &&
223
+ crop_bottom == o.crop_bottom &&
224
+ crop_left == o.crop_left &&
225
+ crop_right == o.crop_right &&
226
+ crop_top == o.crop_top &&
227
+ dpi == o.dpi &&
228
+ image == o.image &&
229
+ base64_data == o.base64_data &&
230
+ svg_data == o.svg_data &&
231
+ picture_fill_mode == o.picture_fill_mode &&
232
+ image_transform_list == o.image_transform_list
233
+ end
234
+
235
+ # @see the `==` method
236
+ # @param [Object] Object to be compared
237
+ def eql?(o)
238
+ self == o
239
+ end
240
+
241
+ # Calculates hash code according to all attributes.
242
+ # @return [Fixnum] Hash code
243
+ def hash
244
+ [type, crop_bottom, crop_left, crop_right, crop_top, dpi, image, base64_data, svg_data, picture_fill_mode, image_transform_list].hash
245
+ end
246
+
247
+ # Builds the object from hash
248
+ # @param [Hash] attributes Model attributes in the form of hash
249
+ # @return [Object] Returns the model itself
250
+ def build_from_hash(attributes)
251
+ return nil unless attributes.is_a?(Hash)
252
+ self.class.swagger_types.each_pair do |key, type|
253
+ mapKey = self.class.attribute_map[key]
254
+ if !mapKey.nil?
255
+ val = attributes[mapKey]
256
+ if val.nil?
257
+ mapKeyString = mapKey.to_s
258
+ mapKeyString[0] = mapKeyString[0].downcase
259
+ mapKey = mapKeyString.to_sym
260
+ val = attributes[mapKey]
261
+ end
262
+ if !val.nil?
263
+ if type =~ /\AArray<(.*)>/i
264
+ # check to ensure the input is an array given that the the attribute
265
+ # is documented as an array but the input is not
266
+ if val.is_a?(Array)
267
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
268
+ end
269
+ else
270
+ self.send("#{key}=", _deserialize(type, val))
271
+ end
272
+ end
273
+ end
274
+ end
275
+
276
+ self
277
+ end
278
+
279
+ # Deserializes the data based on type
280
+ # @param string type Data type
281
+ # @param string value Value to be deserialized
282
+ # @return [Object] Deserialized data
283
+ def _deserialize(type, value)
284
+ case type.to_sym
285
+ when :DateTime
286
+ DateTime.parse(value)
287
+ when :Date
288
+ Date.parse(value)
289
+ when :String
290
+ value.to_s
291
+ when :Integer
292
+ value.to_i
293
+ when :Float
294
+ value.to_f
295
+ when :BOOLEAN
296
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
297
+ true
298
+ else
299
+ false
300
+ end
301
+ when :Object
302
+ # generic object (usually a Hash), return directly
303
+ value
304
+ when /\AArray<(?<inner_type>.+)>\z/
305
+ inner_type = Regexp.last_match[:inner_type]
306
+ value.map { |v| _deserialize(inner_type, v) }
307
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
308
+ k_type = Regexp.last_match[:k_type]
309
+ v_type = Regexp.last_match[:v_type]
310
+ {}.tap do |hash|
311
+ value.each do |k, v|
312
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
313
+ end
314
+ end
315
+ else # model
316
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
317
+ if registry_type
318
+ type = registry_type
319
+ end
320
+ temp_model = AsposeSlidesCloud.const_get(type).new
321
+ temp_model.build_from_hash(value)
322
+ end
323
+ end
324
+
325
+ # Returns the string representation of the object
326
+ # @return [String] String presentation of the object
327
+ def to_s
328
+ to_hash.to_s
329
+ end
330
+
331
+ # to_body is an alias to to_hash (backward compatibility)
332
+ # @return [Hash] Returns the object in the form of hash
333
+ def to_body
334
+ to_hash
335
+ end
336
+
337
+ # Returns the object in the form of hash
338
+ # @return [Hash] Returns the object in the form of hash
339
+ def to_hash
340
+ hash = {}
341
+ self.class.attribute_map.each_pair do |attr, param|
342
+ value = self.send(attr)
343
+ next if value.nil?
344
+ hash[param] = _to_hash(value)
345
+ end
346
+ hash
347
+ end
348
+
349
+ # Outputs non-array value in the form of hash
350
+ # For object, use to_hash. Otherwise, just return the value
351
+ # @param [Object] value Any valid value
352
+ # @return [Hash] Returns the value in the form of hash
353
+ def _to_hash(value)
354
+ if value.is_a?(Array)
355
+ value.compact.map { |v| _to_hash(v) }
356
+ elsif value.is_a?(Hash)
357
+ {}.tap do |hash|
358
+ value.each { |k, v| hash[k] = _to_hash(v) }
359
+ end
360
+ elsif value.respond_to? :to_hash
361
+ value.to_hash
362
+ else
363
+ value
364
+ end
365
+ end
366
+ end
367
+ end