aspose_slides_cloud 25.10.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 +11 -11
- data/README.md +12 -5
- 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/math_element.rb +2 -2
- data/lib/aspose_slides_cloud/models/phantom_element.rb +141 -0
- data/lib/aspose_slides_cloud/models/portion.rb +11 -1
- data/lib/aspose_slides_cloud/models/portion_format.rb +12 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/slide_show_transition.rb +12 -2
- 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/type_registry.rb +2 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- 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 +9 -6
- metadata +10 -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 (
|
|
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.
|
|
16
|
-
public_suffix (>= 2.0.2, <
|
|
15
|
+
addressable (2.9.0)
|
|
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 (
|
|
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)
|
|
@@ -39,17 +39,17 @@ GEM
|
|
|
39
39
|
faraday-em_synchrony (1.0.1)
|
|
40
40
|
faraday-excon (1.1.0)
|
|
41
41
|
faraday-httpclient (1.0.1)
|
|
42
|
-
faraday-multipart (1.
|
|
42
|
+
faraday-multipart (1.2.0)
|
|
43
43
|
multipart-post (~> 2.0)
|
|
44
44
|
faraday-net_http (1.0.2)
|
|
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.
|
|
@@ -23,10 +23,17 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
|
23
23
|
## Save Presentation As
|
|
24
24
|
|
|
25
25
|
**Fixed Layout:** XPS
|
|
26
|
-
**Images:** JPEG, PNG, BMP, TIFF, GIF, SVG
|
|
26
|
+
**Images:** JPEG, PNG, BMP, TIFF, GIF, EMF, SVG
|
|
27
27
|
**Web:** HTML/HTML5
|
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
|
29
29
|
|
|
30
|
+
## Enhancements in Version 25.10
|
|
31
|
+
|
|
32
|
+
* Added **SetEmbeddedFonts** and **SetEmbeddedFontsOnline** methods to embed many fonts in one call.
|
|
33
|
+
* Removed **SetEmbeddedFontFromRequest** and **SetEmbeddedFontFromRequestOnline** methods. The above methods can be used instead.
|
|
34
|
+
* Added optional **shapeIndex** and **shapeIndex** parameters to **GetSlideImages** method.
|
|
35
|
+
* Renamed **GetVideoCaptionTracks**, **CreateVideoCaptionTrack**, **DeleteVideoCaptionTracks** and **DeleteVideoCaptionTracks** methods into **GetCaptionTracks**, **CreateCaptionTrack**, **DeleteCaptionTracks** and **DeleteCaptionTracks**. The methods now work with video frames and audio frames.
|
|
36
|
+
|
|
30
37
|
## Enhancements in Version 25.6
|
|
31
38
|
|
|
32
39
|
* Added **GetVideoCaptionTracks**, **CreateVideoCaptionTrack**, **DeleteVideoCaptionTracks**, **DeleteVideoCaptionTracks** method.
|
|
@@ -76,7 +83,7 @@ The example code below converts a PowerPoint document to PDF format using aspose
|
|
|
76
83
|
|
|
77
84
|
| .NET | Java | PHP | Python | Ruby | Node.js | Android | Swift|Perl|Go|
|
|
78
85
|
|---|---|---|---|---|---|---|--|--|--|
|
|
79
|
-
| [GitHub](https://github.com/aspose-slides-cloud/
|
|
80
|
-
| [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/) |
|
|
81
88
|
|
|
82
|
-
[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
|
|
@@ -64,7 +64,7 @@ module AsposeSlidesCloud
|
|
|
64
64
|
# Check to see if the all the properties in the model are valid
|
|
65
65
|
# @return true if the model is valid
|
|
66
66
|
def valid?
|
|
67
|
-
type_validator = EnumAttributeValidator.new('String', ['Accent', 'Array', 'Bar', 'Block', 'BorderBox', 'Box', 'Delimiter', 'Text', 'Fraction', 'Function', 'GroupingCharacter', 'LeftSubSuperscriptElement', 'Limit', 'Matrix', 'NaryOperator', 'Radical', 'RightSubSuperscriptElement', 'SubscriptElement', 'SuperscriptElement'])
|
|
67
|
+
type_validator = EnumAttributeValidator.new('String', ['Accent', 'Array', 'Bar', 'Block', 'BorderBox', 'Box', 'Delimiter', 'Text', 'Fraction', 'Function', 'GroupingCharacter', 'LeftSubSuperscriptElement', 'Limit', 'Matrix', 'NaryOperator', 'Radical', 'RightSubSuperscriptElement', 'SubscriptElement', 'SuperscriptElement', 'Phantom'])
|
|
68
68
|
return false unless type_validator.valid?(@type)
|
|
69
69
|
true
|
|
70
70
|
end
|
|
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
|
|
|
72
72
|
# Custom attribute writer method checking allowed values (enum).
|
|
73
73
|
# @param [Object] type Object to be assigned
|
|
74
74
|
def type=(type)
|
|
75
|
-
validator = EnumAttributeValidator.new('String', ['Accent', 'Array', 'Bar', 'Block', 'BorderBox', 'Box', 'Delimiter', 'Text', 'Fraction', 'Function', 'GroupingCharacter', 'LeftSubSuperscriptElement', 'Limit', 'Matrix', 'NaryOperator', 'Radical', 'RightSubSuperscriptElement', 'SubscriptElement', 'SuperscriptElement'])
|
|
75
|
+
validator = EnumAttributeValidator.new('String', ['Accent', 'Array', 'Bar', 'Block', 'BorderBox', 'Box', 'Delimiter', 'Text', 'Fraction', 'Function', 'GroupingCharacter', 'LeftSubSuperscriptElement', 'Limit', 'Matrix', 'NaryOperator', 'Radical', 'RightSubSuperscriptElement', 'SubscriptElement', 'SuperscriptElement', 'Phantom'])
|
|
76
76
|
unless validator.valid?(type)
|
|
77
77
|
fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
|
|
78
78
|
end
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
# Specifies an instance of mathematical text that contained within a MathParagraph and starts on its own line.
|
|
27
|
+
class PhantomElement < MathElement
|
|
28
|
+
# Base element
|
|
29
|
+
attr_accessor :base
|
|
30
|
+
|
|
31
|
+
# true if the base element is displayed.
|
|
32
|
+
attr_accessor :show
|
|
33
|
+
|
|
34
|
+
# true if the the width of the base element should be treated as zero.
|
|
35
|
+
attr_accessor :zero_width
|
|
36
|
+
|
|
37
|
+
# true if the the ascent (height above baseline) of the base element should be treated as zero.
|
|
38
|
+
attr_accessor :zero_asc
|
|
39
|
+
|
|
40
|
+
# true if the the descent (depth below baseline) of the base element should be treated as zero.
|
|
41
|
+
attr_accessor :zero_desc
|
|
42
|
+
|
|
43
|
+
# true if operators and symbols inside the phantom still affect mathematical spacing around the phantom (as if visible).
|
|
44
|
+
attr_accessor :transp
|
|
45
|
+
|
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
47
|
+
def self.attribute_map
|
|
48
|
+
super.merge({
|
|
49
|
+
:'base' => :'Base',
|
|
50
|
+
:'show' => :'Show',
|
|
51
|
+
:'zero_width' => :'ZeroWidth',
|
|
52
|
+
:'zero_asc' => :'ZeroAsc',
|
|
53
|
+
:'zero_desc' => :'ZeroDesc',
|
|
54
|
+
:'transp' => :'Transp',
|
|
55
|
+
})
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.swagger_types
|
|
60
|
+
super.merge({
|
|
61
|
+
:'base' => :'MathElement',
|
|
62
|
+
:'show' => :'BOOLEAN',
|
|
63
|
+
:'zero_width' => :'BOOLEAN',
|
|
64
|
+
:'zero_asc' => :'BOOLEAN',
|
|
65
|
+
:'zero_desc' => :'BOOLEAN',
|
|
66
|
+
:'transp' => :'BOOLEAN',
|
|
67
|
+
})
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Initializes the object
|
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
72
|
+
def initialize(attributes = {})
|
|
73
|
+
super
|
|
74
|
+
|
|
75
|
+
if attributes.has_key?(:'Base')
|
|
76
|
+
self.base = attributes[:'Base']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.has_key?(:'Show')
|
|
80
|
+
self.show = attributes[:'Show']
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.has_key?(:'ZeroWidth')
|
|
84
|
+
self.zero_width = attributes[:'ZeroWidth']
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if attributes.has_key?(:'ZeroAsc')
|
|
88
|
+
self.zero_asc = attributes[:'ZeroAsc']
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
if attributes.has_key?(:'ZeroDesc')
|
|
92
|
+
self.zero_desc = attributes[:'ZeroDesc']
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
if attributes.has_key?(:'Transp')
|
|
96
|
+
self.transp = attributes[:'Transp']
|
|
97
|
+
end
|
|
98
|
+
self.type = 'Phantom'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
102
|
+
# @return Array for valid properties with the reasons
|
|
103
|
+
def list_invalid_properties
|
|
104
|
+
invalid_properties = super
|
|
105
|
+
invalid_properties
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Check to see if the all the properties in the model are valid
|
|
109
|
+
# @return true if the model is valid
|
|
110
|
+
def valid?
|
|
111
|
+
return false if !super
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def ==(o)
|
|
118
|
+
return true if self.equal?(o)
|
|
119
|
+
self.class == o.class &&
|
|
120
|
+
type == o.type &&
|
|
121
|
+
base == o.base &&
|
|
122
|
+
show == o.show &&
|
|
123
|
+
zero_width == o.zero_width &&
|
|
124
|
+
zero_asc == o.zero_asc &&
|
|
125
|
+
zero_desc == o.zero_desc &&
|
|
126
|
+
transp == o.transp
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# @see the `==` method
|
|
130
|
+
# @param [Object] Object to be compared
|
|
131
|
+
def eql?(o)
|
|
132
|
+
self == o
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Calculates hash code according to all attributes.
|
|
136
|
+
# @return [Fixnum] Hash code
|
|
137
|
+
def hash
|
|
138
|
+
[type, base, show, zero_width, zero_asc, zero_desc, transp].hash
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
end
|