aspose_slides_cloud 26.1.0 → 26.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +9 -9
- data/README.md +4 -4
- data/aspose_slides_cloud.gemspec +1 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +204 -6
- data/lib/aspose_slides_cloud/configuration.rb +12 -4
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/smart_art.rb +12 -2
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +1017 -21
- data/spec/use_cases/audio_spec.rb +67 -0
- data/spec/use_cases/chart_spec.rb +27 -6
- data/spec/use_cases/convert_spec.rb +281 -0
- data/spec/use_cases/image_spec.rb +20 -0
- data/spec/use_cases/layout_slide_spec.rb +1 -1
- data/spec/use_cases/master_slide_spec.rb +1 -1
- data/spec/use_cases/notes_slide_spec.rb +1 -1
- data/spec/use_cases/nullable_field_spec.rb +1 -1
- data/spec/use_cases/shape_spec.rb +241 -26
- data/spec/use_cases/table_spec.rb +21 -0
- data/spec/use_cases/text_format_spec.rb +2 -2
- data/spec/use_cases/video_spec.rb +67 -0
- data/testRules.json +8 -5
- metadata +9 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5d3d7773c1d1a6765985ffce35a5a3626cf55c17106cb9b5516b9ba286577cd2
|
|
4
|
+
data.tar.gz: 4cbe528430dac91c10ae8d86c6e37256df3d28f9f0f7369e451b42b15074234a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb2ca0a3b6c7d5add7b60dd12df5317c3e1e91fd2e99622faf3949ea142ed7b6f3eaf24ace321f16c2cbce199afa486b20305af4043629f583650b4ac571a26e
|
|
7
|
+
data.tar.gz: 16cfe2a04fc007c53d29aa3a68b9877678a6b57861cc44f0208146e1fa4c07b0c4e2de6cc53165c64d7c76e035ec13bf7b79bad0a9a23a8789512359f7f90003
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
aspose_slides_cloud (26.
|
|
4
|
+
aspose_slides_cloud (26.6.0)
|
|
5
5
|
faraday (~> 1.0, >= 1.0.0)
|
|
6
6
|
faraday-httpclient (~> 1.0, >= 1.0.0)
|
|
7
7
|
httpclient (~> 2.2, >= 2.2.0)
|
|
@@ -12,18 +12,18 @@ GEM
|
|
|
12
12
|
remote: https://rubygems.org/
|
|
13
13
|
specs:
|
|
14
14
|
ZenTest (4.12.2)
|
|
15
|
-
addressable (2.
|
|
15
|
+
addressable (2.9.0)
|
|
16
16
|
public_suffix (>= 2.0.2, < 8.0)
|
|
17
17
|
autotest (4.4.6)
|
|
18
18
|
ZenTest (>= 4.4.1)
|
|
19
19
|
autotest-growl (0.2.16)
|
|
20
20
|
autotest-rails-pure (4.1.2)
|
|
21
|
-
bigdecimal (4.
|
|
21
|
+
bigdecimal (4.1.2)
|
|
22
22
|
crack (1.0.1)
|
|
23
23
|
bigdecimal
|
|
24
24
|
rexml
|
|
25
25
|
diff-lcs (1.6.2)
|
|
26
|
-
faraday (1.10.
|
|
26
|
+
faraday (1.10.5)
|
|
27
27
|
faraday-em_http (~> 1.0)
|
|
28
28
|
faraday-em_synchrony (~> 1.0)
|
|
29
29
|
faraday-excon (~> 1.1)
|
|
@@ -45,11 +45,11 @@ GEM
|
|
|
45
45
|
faraday-net_http_persistent (1.2.0)
|
|
46
46
|
faraday-patron (1.0.0)
|
|
47
47
|
faraday-rack (1.0.0)
|
|
48
|
-
faraday-retry (1.0.
|
|
48
|
+
faraday-retry (1.0.4)
|
|
49
49
|
hashdiff (1.2.1)
|
|
50
50
|
httpclient (2.9.0)
|
|
51
51
|
mutex_m
|
|
52
|
-
json (2.
|
|
52
|
+
json (2.19.9)
|
|
53
53
|
multipart-post (2.4.1)
|
|
54
54
|
mutex_m (0.3.0)
|
|
55
55
|
public_suffix (6.0.2)
|
|
@@ -64,16 +64,16 @@ GEM
|
|
|
64
64
|
rspec-expectations (3.13.5)
|
|
65
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
66
66
|
rspec-support (~> 3.13.0)
|
|
67
|
-
rspec-mocks (3.13.
|
|
67
|
+
rspec-mocks (3.13.8)
|
|
68
68
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
69
69
|
rspec-support (~> 3.13.0)
|
|
70
|
-
rspec-support (3.13.
|
|
70
|
+
rspec-support (3.13.7)
|
|
71
71
|
rspec_junit_formatter (0.6.0)
|
|
72
72
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
73
73
|
ruby2_keywords (0.0.5)
|
|
74
74
|
rubyzip (2.4.1)
|
|
75
75
|
vcr (3.0.3)
|
|
76
|
-
warning (1.
|
|
76
|
+
warning (1.6.0)
|
|
77
77
|
webmock (1.24.6)
|
|
78
78
|
addressable (>= 2.3.6)
|
|
79
79
|
crack (>= 0.3.2)
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
   [   [](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Ruby/blob/master/LICENSE)
|
|
2
2
|
|
|
3
3
|
# Ruby REST API to Process Presentation in Cloud
|
|
4
4
|
This repository contains Aspose.Slides Cloud SDK for Ruby source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/java) using Aspose.slides Cloud REST APIs in your Ruby applications.
|
|
@@ -83,7 +83,7 @@ The example code below converts a PowerPoint document to PDF format using aspose
|
|
|
83
83
|
|
|
84
84
|
| .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Perl|Go|
|
|
85
85
|
|---|---|---|---|---|---|---|--|--|--|
|
|
86
|
-
| [GitHub](https://github.com/aspose-slides-cloud/
|
|
87
|
-
| [NuGet](https://www.nuget.org/packages/Aspose.slides-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Composer](https://packagist.org/packages/aspose/slides-sdk-php) | [PIP](https://pypi.org/project/asposeslidescloud/) | [GEM](https://rubygems.org/gems/aspose_slides_cloud) | [NPM](https://www.npmjs.com/package/asposeslidescloud) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Cocoapods](https://cocoapods.org/pods/AsposeslidesCloud)|[Meta Cpan](https://metacpan.org/release/AsposeSlidesCloud-SlidesApi) | [Go.Dev](https://pkg.go.dev/github.com/aspose-slides-cloud/
|
|
86
|
+
| [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-.NET) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Java) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-PHP) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Python) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Ruby) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Node.js) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Android) | [GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Swift)|[GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Perl) |[GitHub](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Go) |
|
|
87
|
+
| [NuGet](https://www.nuget.org/packages/Aspose.slides-Cloud/) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Composer](https://packagist.org/packages/aspose/slides-sdk-php) | [PIP](https://pypi.org/project/asposeslidescloud/) | [GEM](https://rubygems.org/gems/aspose_slides_cloud) | [NPM](https://www.npmjs.com/package/asposeslidescloud) | [Maven](https://repository.aspose.cloud/webapp/#/artifacts/browse/tree/General/repo/com/aspose/aspose-slides-cloud) | [Cocoapods](https://cocoapods.org/pods/AsposeslidesCloud)|[Meta Cpan](https://metacpan.org/release/AsposeSlidesCloud-SlidesApi) | [Go.Dev](https://pkg.go.dev/github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Go/) |
|
|
88
88
|
|
|
89
|
-
[Product Page](https://products.aspose.cloud/slides/ruby) | [Documentation](https://docs.aspose.cloud/display/slidescloud/Home) | [API Reference](https://apireference.aspose.cloud/slides/) | [Code Samples](https://github.com/aspose-slides-cloud/
|
|
89
|
+
[Product Page](https://products.aspose.cloud/slides/ruby) | [Documentation](https://docs.aspose.cloud/display/slidescloud/Home) | [API Reference](https://apireference.aspose.cloud/slides/) | [Code Samples](https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Ruby) | [Blog](https://blog.aspose.cloud/category/slides/) | [Free Support](https://forum.aspose.cloud/c/slides) | [Free Trial](https://dashboard.aspose.cloud/#/apps)
|
data/aspose_slides_cloud.gemspec
CHANGED
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
|
|
|
31
31
|
s.platform = Gem::Platform::RUBY
|
|
32
32
|
s.authors = ["Victor Putrov"]
|
|
33
33
|
s.email = ["victor.putrov@aspose.com"]
|
|
34
|
-
s.homepage = "https://github.com/aspose-slides-cloud/
|
|
34
|
+
s.homepage = "https://github.com/aspose-slides-cloud/Aspose.Slides-Cloud-SDK-for-Ruby"
|
|
35
35
|
s.summary = "Aspose.Slides Cloud SDK"
|
|
36
36
|
s.description = "SDK for Aspose.Slides Cloud"
|
|
37
37
|
s.license = "MIT"
|
|
@@ -2281,13 +2281,14 @@ module AsposeSlidesCloud
|
|
|
2281
2281
|
# @param slide_index Slide index.
|
|
2282
2282
|
# @param dto Shape DTO.
|
|
2283
2283
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2284
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2284
2285
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2285
2286
|
# @param password Document password.
|
|
2286
2287
|
# @param folder Document folder.
|
|
2287
2288
|
# @param storage Document storage.
|
|
2288
2289
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2289
|
-
def create_shape(name, slide_index, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2290
|
-
data, _status_code, _headers = create_shape_with_http_info(name, slide_index, dto, shape_to_clone, position, password, folder, storage, sub_shape)
|
|
2290
|
+
def create_shape(name, slide_index, dto = nil, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2291
|
+
data, _status_code, _headers = create_shape_with_http_info(name, slide_index, dto, shape_to_clone, clone_from_slide, position, password, folder, storage, sub_shape)
|
|
2291
2292
|
data
|
|
2292
2293
|
end
|
|
2293
2294
|
|
|
@@ -2296,12 +2297,13 @@ module AsposeSlidesCloud
|
|
|
2296
2297
|
# @param slide_index Slide index.
|
|
2297
2298
|
# @param dto Shape DTO.
|
|
2298
2299
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2300
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2299
2301
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2300
2302
|
# @param password Document password.
|
|
2301
2303
|
# @param folder Document folder.
|
|
2302
2304
|
# @param storage Document storage.
|
|
2303
2305
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2304
|
-
def create_shape_with_http_info(name, slide_index, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2306
|
+
def create_shape_with_http_info(name, slide_index, dto = nil, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2305
2307
|
if @api_client.config.debugging
|
|
2306
2308
|
@api_client.config.logger.debug 'Calling API: SlidesApi.create_shape ...'
|
|
2307
2309
|
end
|
|
@@ -2322,6 +2324,7 @@ module AsposeSlidesCloud
|
|
|
2322
2324
|
# query parameters
|
|
2323
2325
|
query_params = {}
|
|
2324
2326
|
query_params[:'shapeToClone'] = @api_client.prepare_for_query(shape_to_clone) unless shape_to_clone.nil?
|
|
2327
|
+
query_params[:'cloneFromSlide'] = @api_client.prepare_for_query(clone_from_slide) unless clone_from_slide.nil?
|
|
2325
2328
|
query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
|
|
2326
2329
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
2327
2330
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
@@ -2945,13 +2948,14 @@ module AsposeSlidesCloud
|
|
|
2945
2948
|
# @param slide_type Slide type (master, layout or notes).
|
|
2946
2949
|
# @param dto Shape DTO.
|
|
2947
2950
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2951
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2948
2952
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2949
2953
|
# @param password Document password.
|
|
2950
2954
|
# @param folder Document folder.
|
|
2951
2955
|
# @param storage Document storage.
|
|
2952
2956
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2953
|
-
def create_special_slide_shape(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2954
|
-
data, _status_code, _headers = create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone, position, password, folder, storage, sub_shape)
|
|
2957
|
+
def create_special_slide_shape(name, slide_index, slide_type, dto, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2958
|
+
data, _status_code, _headers = create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone, clone_from_slide, position, password, folder, storage, sub_shape)
|
|
2955
2959
|
data
|
|
2956
2960
|
end
|
|
2957
2961
|
|
|
@@ -2961,12 +2965,13 @@ module AsposeSlidesCloud
|
|
|
2961
2965
|
# @param slide_type Slide type (master, layout or notes).
|
|
2962
2966
|
# @param dto Shape DTO.
|
|
2963
2967
|
# @param shape_to_clone Optional index for clone shape instead of adding a new one.
|
|
2968
|
+
# @param clone_from_slide Optional index of the slide to clone the shape from. When set, shapeToClone refers to a shape on that slide.
|
|
2964
2969
|
# @param position Position of the new shape in the list. Default is at the end of the list.
|
|
2965
2970
|
# @param password Document password.
|
|
2966
2971
|
# @param folder Document folder.
|
|
2967
2972
|
# @param storage Document storage.
|
|
2968
2973
|
# @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
|
|
2969
|
-
def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2974
|
+
def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone = nil, clone_from_slide = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
|
|
2970
2975
|
if @api_client.config.debugging
|
|
2971
2976
|
@api_client.config.logger.debug 'Calling API: SlidesApi.create_special_slide_shape ...'
|
|
2972
2977
|
end
|
|
@@ -3000,6 +3005,7 @@ module AsposeSlidesCloud
|
|
|
3000
3005
|
# query parameters
|
|
3001
3006
|
query_params = {}
|
|
3002
3007
|
query_params[:'shapeToClone'] = @api_client.prepare_for_query(shape_to_clone) unless shape_to_clone.nil?
|
|
3008
|
+
query_params[:'cloneFromSlide'] = @api_client.prepare_for_query(clone_from_slide) unless clone_from_slide.nil?
|
|
3003
3009
|
query_params[:'position'] = @api_client.prepare_for_query(position) unless position.nil?
|
|
3004
3010
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
3005
3011
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
@@ -13834,6 +13840,103 @@ module AsposeSlidesCloud
|
|
|
13834
13840
|
:return_type => 'Shape')
|
|
13835
13841
|
return data, status_code, headers
|
|
13836
13842
|
end
|
|
13843
|
+
# Imports a chart from an Excel workbook and adds it to the slide.
|
|
13844
|
+
# @param name Document name.
|
|
13845
|
+
# @param slide_index Slide index.
|
|
13846
|
+
# @param worksheet_name The name of the worksheet that contains the chart.
|
|
13847
|
+
# @param document Excel workbook data.
|
|
13848
|
+
# @param chart_name The name of the chart. Required if chartIndex is not specified.
|
|
13849
|
+
# @param chart_index The zero-based index of the chart in the worksheet. Takes precedence over chartName.
|
|
13850
|
+
# @param x X coordinate of the chart (EMU).
|
|
13851
|
+
# @param y Y coordinate of the chart (EMU).
|
|
13852
|
+
# @param embed_all_workbook If true, the entire workbook is embedded; if false, only chart data.
|
|
13853
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
13854
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
13855
|
+
# @param password Document password.
|
|
13856
|
+
# @param folder Presentation folder.
|
|
13857
|
+
# @param storage Presentation storage.
|
|
13858
|
+
def import_chart_from_workbook(name, slide_index, worksheet_name, document = nil, chart_name = nil, chart_index = nil, x = nil, y = nil, embed_all_workbook = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
13859
|
+
data, _status_code, _headers = import_chart_from_workbook_with_http_info(name, slide_index, worksheet_name, document, chart_name, chart_index, x, y, embed_all_workbook, workbook_path, workbook_storage, password, folder, storage)
|
|
13860
|
+
data
|
|
13861
|
+
end
|
|
13862
|
+
|
|
13863
|
+
# Imports a chart from an Excel workbook and adds it to the slide.
|
|
13864
|
+
# @param name Document name.
|
|
13865
|
+
# @param slide_index Slide index.
|
|
13866
|
+
# @param worksheet_name The name of the worksheet that contains the chart.
|
|
13867
|
+
# @param document Excel workbook data.
|
|
13868
|
+
# @param chart_name The name of the chart. Required if chartIndex is not specified.
|
|
13869
|
+
# @param chart_index The zero-based index of the chart in the worksheet. Takes precedence over chartName.
|
|
13870
|
+
# @param x X coordinate of the chart (EMU).
|
|
13871
|
+
# @param y Y coordinate of the chart (EMU).
|
|
13872
|
+
# @param embed_all_workbook If true, the entire workbook is embedded; if false, only chart data.
|
|
13873
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
13874
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
13875
|
+
# @param password Document password.
|
|
13876
|
+
# @param folder Presentation folder.
|
|
13877
|
+
# @param storage Presentation storage.
|
|
13878
|
+
def import_chart_from_workbook_with_http_info(name, slide_index, worksheet_name, document = nil, chart_name = nil, chart_index = nil, x = nil, y = nil, embed_all_workbook = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
13879
|
+
if @api_client.config.debugging
|
|
13880
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.import_chart_from_workbook ...'
|
|
13881
|
+
end
|
|
13882
|
+
|
|
13883
|
+
# verify the required parameter 'name' is set
|
|
13884
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
13885
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_chart_from_workbook"
|
|
13886
|
+
end
|
|
13887
|
+
# verify the required parameter 'slide_index' is set
|
|
13888
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
13889
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.import_chart_from_workbook"
|
|
13890
|
+
end
|
|
13891
|
+
# verify the required parameter 'worksheet_name' is set
|
|
13892
|
+
if @api_client.config.client_side_validation && worksheet_name.nil?
|
|
13893
|
+
fail ArgumentError, "Missing the required parameter 'worksheet_name' when calling SlidesApi.import_chart_from_workbook"
|
|
13894
|
+
end
|
|
13895
|
+
# resource path
|
|
13896
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/fromExcelChart'
|
|
13897
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
13898
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
13899
|
+
|
|
13900
|
+
# query parameters
|
|
13901
|
+
query_params = {}
|
|
13902
|
+
query_params[:'worksheetName'] = @api_client.prepare_for_query(worksheet_name) unless worksheet_name.nil?
|
|
13903
|
+
query_params[:'chartName'] = @api_client.prepare_for_query(chart_name) unless chart_name.nil?
|
|
13904
|
+
query_params[:'chartIndex'] = @api_client.prepare_for_query(chart_index) unless chart_index.nil?
|
|
13905
|
+
query_params[:'x'] = @api_client.prepare_for_query(x) unless x.nil?
|
|
13906
|
+
query_params[:'y'] = @api_client.prepare_for_query(y) unless y.nil?
|
|
13907
|
+
query_params[:'embedAllWorkbook'] = @api_client.prepare_for_query(embed_all_workbook) unless embed_all_workbook.nil?
|
|
13908
|
+
query_params[:'workbookPath'] = @api_client.prepare_for_query(workbook_path) unless workbook_path.nil?
|
|
13909
|
+
query_params[:'workbookStorage'] = @api_client.prepare_for_query(workbook_storage) unless workbook_storage.nil?
|
|
13910
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
13911
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
13912
|
+
|
|
13913
|
+
# header parameters
|
|
13914
|
+
header_params = {}
|
|
13915
|
+
# HTTP header 'Accept' (if needed)
|
|
13916
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
13917
|
+
# HTTP header 'Content-Type'
|
|
13918
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
13919
|
+
header_params[:'password'] = password unless password.nil?
|
|
13920
|
+
|
|
13921
|
+
# http body (model)
|
|
13922
|
+
post_body = nil
|
|
13923
|
+
|
|
13924
|
+
# form parameters
|
|
13925
|
+
post_files = []
|
|
13926
|
+
if document
|
|
13927
|
+
post_files = post_files.push(document)
|
|
13928
|
+
end
|
|
13929
|
+
|
|
13930
|
+
auth_names = ['JWT']
|
|
13931
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
13932
|
+
:header_params => header_params,
|
|
13933
|
+
:query_params => query_params,
|
|
13934
|
+
:body => post_body,
|
|
13935
|
+
:files => post_files,
|
|
13936
|
+
:auth_names => auth_names,
|
|
13937
|
+
:return_type => 'ShapeBase')
|
|
13938
|
+
return data, status_code, headers
|
|
13939
|
+
end
|
|
13837
13940
|
# Create presentation document from html.
|
|
13838
13941
|
# @param name Document name.
|
|
13839
13942
|
# @param html HTML data.
|
|
@@ -14054,6 +14157,101 @@ module AsposeSlidesCloud
|
|
|
14054
14157
|
:return_type => 'Shapes')
|
|
14055
14158
|
return data, status_code, headers
|
|
14056
14159
|
end
|
|
14160
|
+
# Imports a table from an Excel workbook and adds it to the slide.
|
|
14161
|
+
# @param name Document name.
|
|
14162
|
+
# @param slide_index Slide index.
|
|
14163
|
+
# @param worksheet_name The name of the worksheet that contains the table.
|
|
14164
|
+
# @param cell_range The cell range that defines the table (e.g. \"A1:D10\").
|
|
14165
|
+
# @param document Excel workbook data.
|
|
14166
|
+
# @param x X coordinate of the table (EMU).
|
|
14167
|
+
# @param y Y coordinate of the table (EMU).
|
|
14168
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14169
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14170
|
+
# @param password Document password.
|
|
14171
|
+
# @param folder Presentation folder.
|
|
14172
|
+
# @param storage Presentation storage.
|
|
14173
|
+
def import_table_from_workbook(name, slide_index, worksheet_name, cell_range, document = nil, x = nil, y = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14174
|
+
data, _status_code, _headers = import_table_from_workbook_with_http_info(name, slide_index, worksheet_name, cell_range, document, x, y, workbook_path, workbook_storage, password, folder, storage)
|
|
14175
|
+
data
|
|
14176
|
+
end
|
|
14177
|
+
|
|
14178
|
+
# Imports a table from an Excel workbook and adds it to the slide.
|
|
14179
|
+
# @param name Document name.
|
|
14180
|
+
# @param slide_index Slide index.
|
|
14181
|
+
# @param worksheet_name The name of the worksheet that contains the table.
|
|
14182
|
+
# @param cell_range The cell range that defines the table (e.g. \"A1:D10\").
|
|
14183
|
+
# @param document Excel workbook data.
|
|
14184
|
+
# @param x X coordinate of the table (EMU).
|
|
14185
|
+
# @param y Y coordinate of the table (EMU).
|
|
14186
|
+
# @param workbook_path Storage path to the workbook. If omitted, the workbook must be uploaded as multipart form data.
|
|
14187
|
+
# @param workbook_storage Storage name for workbookPath.
|
|
14188
|
+
# @param password Document password.
|
|
14189
|
+
# @param folder Presentation folder.
|
|
14190
|
+
# @param storage Presentation storage.
|
|
14191
|
+
def import_table_from_workbook_with_http_info(name, slide_index, worksheet_name, cell_range, document = nil, x = nil, y = nil, workbook_path = nil, workbook_storage = nil, password = nil, folder = nil, storage = nil)
|
|
14192
|
+
if @api_client.config.debugging
|
|
14193
|
+
@api_client.config.logger.debug 'Calling API: SlidesApi.import_table_from_workbook ...'
|
|
14194
|
+
end
|
|
14195
|
+
|
|
14196
|
+
# verify the required parameter 'name' is set
|
|
14197
|
+
if @api_client.config.client_side_validation && name.nil?
|
|
14198
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.import_table_from_workbook"
|
|
14199
|
+
end
|
|
14200
|
+
# verify the required parameter 'slide_index' is set
|
|
14201
|
+
if @api_client.config.client_side_validation && slide_index.nil?
|
|
14202
|
+
fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.import_table_from_workbook"
|
|
14203
|
+
end
|
|
14204
|
+
# verify the required parameter 'worksheet_name' is set
|
|
14205
|
+
if @api_client.config.client_side_validation && worksheet_name.nil?
|
|
14206
|
+
fail ArgumentError, "Missing the required parameter 'worksheet_name' when calling SlidesApi.import_table_from_workbook"
|
|
14207
|
+
end
|
|
14208
|
+
# verify the required parameter 'cell_range' is set
|
|
14209
|
+
if @api_client.config.client_side_validation && cell_range.nil?
|
|
14210
|
+
fail ArgumentError, "Missing the required parameter 'cell_range' when calling SlidesApi.import_table_from_workbook"
|
|
14211
|
+
end
|
|
14212
|
+
# resource path
|
|
14213
|
+
local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/fromExcelTable'
|
|
14214
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
|
14215
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
|
|
14216
|
+
|
|
14217
|
+
# query parameters
|
|
14218
|
+
query_params = {}
|
|
14219
|
+
query_params[:'worksheetName'] = @api_client.prepare_for_query(worksheet_name) unless worksheet_name.nil?
|
|
14220
|
+
query_params[:'cellRange'] = @api_client.prepare_for_query(cell_range) unless cell_range.nil?
|
|
14221
|
+
query_params[:'x'] = @api_client.prepare_for_query(x) unless x.nil?
|
|
14222
|
+
query_params[:'y'] = @api_client.prepare_for_query(y) unless y.nil?
|
|
14223
|
+
query_params[:'workbookPath'] = @api_client.prepare_for_query(workbook_path) unless workbook_path.nil?
|
|
14224
|
+
query_params[:'workbookStorage'] = @api_client.prepare_for_query(workbook_storage) unless workbook_storage.nil?
|
|
14225
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
|
14226
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
|
14227
|
+
|
|
14228
|
+
# header parameters
|
|
14229
|
+
header_params = {}
|
|
14230
|
+
# HTTP header 'Accept' (if needed)
|
|
14231
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
14232
|
+
# HTTP header 'Content-Type'
|
|
14233
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
|
14234
|
+
header_params[:'password'] = password unless password.nil?
|
|
14235
|
+
|
|
14236
|
+
# http body (model)
|
|
14237
|
+
post_body = nil
|
|
14238
|
+
|
|
14239
|
+
# form parameters
|
|
14240
|
+
post_files = []
|
|
14241
|
+
if document
|
|
14242
|
+
post_files = post_files.push(document)
|
|
14243
|
+
end
|
|
14244
|
+
|
|
14245
|
+
auth_names = ['JWT']
|
|
14246
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
14247
|
+
:header_params => header_params,
|
|
14248
|
+
:query_params => query_params,
|
|
14249
|
+
:body => post_body,
|
|
14250
|
+
:files => post_files,
|
|
14251
|
+
:auth_names => auth_names,
|
|
14252
|
+
:return_type => 'ShapeBase')
|
|
14253
|
+
return data, status_code, headers
|
|
14254
|
+
end
|
|
14057
14255
|
# Merge the presentation with other presentations specified in the request parameter.
|
|
14058
14256
|
# @param name Document name.
|
|
14059
14257
|
# @param request PresentationsMergeRequest with a list of presentations to merge.
|
|
@@ -27,9 +27,6 @@ module AsposeSlidesCloud
|
|
|
27
27
|
# Defines base url
|
|
28
28
|
attr_accessor :base_url
|
|
29
29
|
|
|
30
|
-
# Defines base url for authentication
|
|
31
|
-
attr_accessor :auth_base_url
|
|
32
|
-
|
|
33
30
|
# Defines platform version
|
|
34
31
|
attr_accessor :version
|
|
35
32
|
|
|
@@ -131,7 +128,6 @@ module AsposeSlidesCloud
|
|
|
131
128
|
|
|
132
129
|
def initialize
|
|
133
130
|
@base_url = 'https://api.aspose.cloud'
|
|
134
|
-
@auth_base_url = 'https://api.aspose.cloud'
|
|
135
131
|
@version = 'v3.0'
|
|
136
132
|
@http_request_timeout = 300
|
|
137
133
|
@timeout = 0
|
|
@@ -163,6 +159,18 @@ module AsposeSlidesCloud
|
|
|
163
159
|
@base_url = getUrlHostPart(base_url)
|
|
164
160
|
end
|
|
165
161
|
|
|
162
|
+
def async_base_url
|
|
163
|
+
@async_base_url || @base_url
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
def async_base_url=(async_base_url)
|
|
167
|
+
@async_base_url = getUrlHostPart(async_base_url)
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
def auth_base_url
|
|
171
|
+
@auth_base_url || @base_url
|
|
172
|
+
end
|
|
173
|
+
|
|
166
174
|
def auth_base_url=(auth_base_url)
|
|
167
175
|
@auth_base_url = getUrlHostPart(auth_base_url)
|
|
168
176
|
end
|
|
@@ -31,6 +31,9 @@ module AsposeSlidesCloud
|
|
|
31
31
|
# Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
|
|
32
32
|
attr_accessor :zip64_mode
|
|
33
33
|
|
|
34
|
+
# The compression level used when saving the presentation document. Higher compression levels produce smaller files but require more processing time. The actual compression ratio depends on the content of the presentation. The default value is CompressionLevel.Level6.
|
|
35
|
+
attr_accessor :compression_level
|
|
36
|
+
|
|
34
37
|
# True to refresh the presentation thumbnail on save
|
|
35
38
|
attr_accessor :refresh_thumbnail
|
|
36
39
|
|
|
@@ -39,6 +42,7 @@ module AsposeSlidesCloud
|
|
|
39
42
|
super.merge({
|
|
40
43
|
:'conformance' => :'Conformance',
|
|
41
44
|
:'zip64_mode' => :'Zip64Mode',
|
|
45
|
+
:'compression_level' => :'CompressionLevel',
|
|
42
46
|
:'refresh_thumbnail' => :'RefreshThumbnail',
|
|
43
47
|
})
|
|
44
48
|
end
|
|
@@ -48,6 +52,7 @@ module AsposeSlidesCloud
|
|
|
48
52
|
super.merge({
|
|
49
53
|
:'conformance' => :'String',
|
|
50
54
|
:'zip64_mode' => :'String',
|
|
55
|
+
:'compression_level' => :'String',
|
|
51
56
|
:'refresh_thumbnail' => :'BOOLEAN',
|
|
52
57
|
})
|
|
53
58
|
end
|
|
@@ -65,6 +70,10 @@ module AsposeSlidesCloud
|
|
|
65
70
|
self.zip64_mode = attributes[:'Zip64Mode']
|
|
66
71
|
end
|
|
67
72
|
|
|
73
|
+
if attributes.has_key?(:'CompressionLevel')
|
|
74
|
+
self.compression_level = attributes[:'CompressionLevel']
|
|
75
|
+
end
|
|
76
|
+
|
|
68
77
|
if attributes.has_key?(:'RefreshThumbnail')
|
|
69
78
|
self.refresh_thumbnail = attributes[:'RefreshThumbnail']
|
|
70
79
|
end
|
|
@@ -86,6 +95,8 @@ module AsposeSlidesCloud
|
|
|
86
95
|
return false unless conformance_validator.valid?(@conformance)
|
|
87
96
|
zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always'])
|
|
88
97
|
return false unless zip64_mode_validator.valid?(@zip64_mode)
|
|
98
|
+
compression_level_validator = EnumAttributeValidator.new('String', ['None', 'Level1', 'Level2', 'Level3', 'Level4', 'Level5', 'Level6', 'Level7', 'Level8', 'Level9'])
|
|
99
|
+
return false unless compression_level_validator.valid?(@compression_level)
|
|
89
100
|
true
|
|
90
101
|
end
|
|
91
102
|
|
|
@@ -109,6 +120,16 @@ module AsposeSlidesCloud
|
|
|
109
120
|
@zip64_mode = zip64_mode
|
|
110
121
|
end
|
|
111
122
|
|
|
123
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
124
|
+
# @param [Object] compression_level Object to be assigned
|
|
125
|
+
def compression_level=(compression_level)
|
|
126
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Level1', 'Level2', 'Level3', 'Level4', 'Level5', 'Level6', 'Level7', 'Level8', 'Level9'])
|
|
127
|
+
unless validator.valid?(compression_level)
|
|
128
|
+
fail ArgumentError, 'invalid value for "compression_level", must be one of #{validator.allowable_values}.'
|
|
129
|
+
end
|
|
130
|
+
@compression_level = compression_level
|
|
131
|
+
end
|
|
132
|
+
|
|
112
133
|
# Checks equality by comparing each attribute.
|
|
113
134
|
# @param [Object] Object to be compared
|
|
114
135
|
def ==(o)
|
|
@@ -123,6 +144,7 @@ module AsposeSlidesCloud
|
|
|
123
144
|
format == o.format &&
|
|
124
145
|
conformance == o.conformance &&
|
|
125
146
|
zip64_mode == o.zip64_mode &&
|
|
147
|
+
compression_level == o.compression_level &&
|
|
126
148
|
refresh_thumbnail == o.refresh_thumbnail
|
|
127
149
|
end
|
|
128
150
|
|
|
@@ -135,7 +157,7 @@ module AsposeSlidesCloud
|
|
|
135
157
|
# Calculates hash code according to all attributes.
|
|
136
158
|
# @return [Fixnum] Hash code
|
|
137
159
|
def hash
|
|
138
|
-
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, conformance, zip64_mode, refresh_thumbnail].hash
|
|
160
|
+
[default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, conformance, zip64_mode, compression_level, refresh_thumbnail].hash
|
|
139
161
|
end
|
|
140
162
|
end
|
|
141
163
|
end
|
|
@@ -40,6 +40,9 @@ module AsposeSlidesCloud
|
|
|
40
40
|
# The state of the SmartArt diagram with regard to (left-to-right) LTR or (right-to-left) RTL, if the diagram supports reversal.
|
|
41
41
|
attr_accessor :is_reversed
|
|
42
42
|
|
|
43
|
+
# Default paragraph format applied to all nodes. Write-only: not populated on read since there is no corresponding property at the SmartArt shape level in Aspose.Slides.
|
|
44
|
+
attr_accessor :default_paragraph_format
|
|
45
|
+
|
|
43
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
47
|
def self.attribute_map
|
|
45
48
|
super.merge({
|
|
@@ -48,6 +51,7 @@ module AsposeSlidesCloud
|
|
|
48
51
|
:'color_style' => :'ColorStyle',
|
|
49
52
|
:'nodes' => :'Nodes',
|
|
50
53
|
:'is_reversed' => :'IsReversed',
|
|
54
|
+
:'default_paragraph_format' => :'DefaultParagraphFormat',
|
|
51
55
|
})
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -59,6 +63,7 @@ module AsposeSlidesCloud
|
|
|
59
63
|
:'color_style' => :'String',
|
|
60
64
|
:'nodes' => :'Array<SmartArtNode>',
|
|
61
65
|
:'is_reversed' => :'BOOLEAN',
|
|
66
|
+
:'default_paragraph_format' => :'ParagraphFormat',
|
|
62
67
|
})
|
|
63
68
|
end
|
|
64
69
|
|
|
@@ -88,6 +93,10 @@ module AsposeSlidesCloud
|
|
|
88
93
|
if attributes.has_key?(:'IsReversed')
|
|
89
94
|
self.is_reversed = attributes[:'IsReversed']
|
|
90
95
|
end
|
|
96
|
+
|
|
97
|
+
if attributes.has_key?(:'DefaultParagraphFormat')
|
|
98
|
+
self.default_paragraph_format = attributes[:'DefaultParagraphFormat']
|
|
99
|
+
end
|
|
91
100
|
self.type = 'SmartArt'
|
|
92
101
|
end
|
|
93
102
|
|
|
@@ -184,7 +193,8 @@ module AsposeSlidesCloud
|
|
|
184
193
|
quick_style == o.quick_style &&
|
|
185
194
|
color_style == o.color_style &&
|
|
186
195
|
nodes == o.nodes &&
|
|
187
|
-
is_reversed == o.is_reversed
|
|
196
|
+
is_reversed == o.is_reversed &&
|
|
197
|
+
default_paragraph_format == o.default_paragraph_format
|
|
188
198
|
end
|
|
189
199
|
|
|
190
200
|
# @see the `==` method
|
|
@@ -196,7 +206,7 @@ module AsposeSlidesCloud
|
|
|
196
206
|
# Calculates hash code according to all attributes.
|
|
197
207
|
# @return [Fixnum] Hash code
|
|
198
208
|
def hash
|
|
199
|
-
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, layout, quick_style, color_style, nodes, is_reversed].hash
|
|
209
|
+
[self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, layout, quick_style, color_style, nodes, is_reversed, default_paragraph_format].hash
|
|
200
210
|
end
|
|
201
211
|
end
|
|
202
212
|
end
|
|
@@ -43,6 +43,9 @@ module AsposeSlidesCloud
|
|
|
43
43
|
# Get or sets list to paragraphs list
|
|
44
44
|
attr_accessor :paragraphs
|
|
45
45
|
|
|
46
|
+
# Default paragraph format for the node's text frame.
|
|
47
|
+
attr_accessor :default_paragraph_format
|
|
48
|
+
|
|
46
49
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
50
|
def self.attribute_map
|
|
48
51
|
{
|
|
@@ -52,6 +55,7 @@ module AsposeSlidesCloud
|
|
|
52
55
|
:'text' => :'Text',
|
|
53
56
|
:'org_chart_layout' => :'OrgChartLayout',
|
|
54
57
|
:'paragraphs' => :'Paragraphs',
|
|
58
|
+
:'default_paragraph_format' => :'DefaultParagraphFormat',
|
|
55
59
|
}
|
|
56
60
|
end
|
|
57
61
|
|
|
@@ -64,6 +68,7 @@ module AsposeSlidesCloud
|
|
|
64
68
|
:'text' => :'String',
|
|
65
69
|
:'org_chart_layout' => :'String',
|
|
66
70
|
:'paragraphs' => :'ResourceUri',
|
|
71
|
+
:'default_paragraph_format' => :'ParagraphFormat',
|
|
67
72
|
}
|
|
68
73
|
end
|
|
69
74
|
|
|
@@ -100,6 +105,10 @@ module AsposeSlidesCloud
|
|
|
100
105
|
if attributes.has_key?(:'Paragraphs')
|
|
101
106
|
self.paragraphs = attributes[:'Paragraphs']
|
|
102
107
|
end
|
|
108
|
+
|
|
109
|
+
if attributes.has_key?(:'DefaultParagraphFormat')
|
|
110
|
+
self.default_paragraph_format = attributes[:'DefaultParagraphFormat']
|
|
111
|
+
end
|
|
103
112
|
end
|
|
104
113
|
|
|
105
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -142,7 +151,8 @@ module AsposeSlidesCloud
|
|
|
142
151
|
is_assistant == o.is_assistant &&
|
|
143
152
|
text == o.text &&
|
|
144
153
|
org_chart_layout == o.org_chart_layout &&
|
|
145
|
-
paragraphs == o.paragraphs
|
|
154
|
+
paragraphs == o.paragraphs &&
|
|
155
|
+
default_paragraph_format == o.default_paragraph_format
|
|
146
156
|
end
|
|
147
157
|
|
|
148
158
|
# @see the `==` method
|
|
@@ -154,7 +164,7 @@ module AsposeSlidesCloud
|
|
|
154
164
|
# Calculates hash code according to all attributes.
|
|
155
165
|
# @return [Fixnum] Hash code
|
|
156
166
|
def hash
|
|
157
|
-
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs].hash
|
|
167
|
+
[nodes, shapes, is_assistant, text, org_chart_layout, paragraphs, default_paragraph_format].hash
|
|
158
168
|
end
|
|
159
169
|
end
|
|
160
170
|
end
|