aspose_slides_cloud 22.4.0 → 22.5.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.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -0
  3. data/TestData/oleObject.xlsx +0 -0
  4. data/TestData/test.pptx +0 -0
  5. data/lib/aspose_slides_cloud/models/{waterfall_series.rb → alpha_bi_level_effect.rb} +16 -26
  6. data/lib/aspose_slides_cloud/models/alpha_ceiling_effect.rb +223 -0
  7. data/lib/aspose_slides_cloud/models/alpha_floor_effect.rb +223 -0
  8. data/lib/aspose_slides_cloud/models/alpha_inverse_effect.rb +223 -0
  9. data/lib/aspose_slides_cloud/models/alpha_modulate_effect.rb +223 -0
  10. data/lib/aspose_slides_cloud/models/alpha_modulate_fixed_effect.rb +238 -0
  11. data/lib/aspose_slides_cloud/models/alpha_replace_effect.rb +238 -0
  12. data/lib/aspose_slides_cloud/models/bi_level_effect.rb +238 -0
  13. data/lib/aspose_slides_cloud/models/blur_image_effect.rb +253 -0
  14. data/lib/aspose_slides_cloud/models/color_change_effect.rb +243 -0
  15. data/lib/aspose_slides_cloud/models/color_replace_effect.rb +233 -0
  16. data/lib/aspose_slides_cloud/models/duotone_effect.rb +243 -0
  17. data/lib/aspose_slides_cloud/models/{box_and_whisker_series.rb → fill_overlay_image_effect.rb} +31 -71
  18. data/lib/aspose_slides_cloud/models/{waterfall_chart_data_point.rb → gray_scale_effect.rb} +26 -13
  19. data/lib/aspose_slides_cloud/models/hsl_effect.rb +268 -0
  20. data/lib/aspose_slides_cloud/models/image_transform_effect.rb +244 -0
  21. data/lib/aspose_slides_cloud/models/luminance_effect.rb +253 -0
  22. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +12 -2
  23. data/lib/aspose_slides_cloud/models/one_value_series.rb +74 -2
  24. data/lib/aspose_slides_cloud/models/picture_fill.rb +14 -2
  25. data/lib/aspose_slides_cloud/models/resource_uri.rb +22 -2
  26. data/lib/aspose_slides_cloud/models/smart_art_node.rb +12 -2
  27. data/lib/aspose_slides_cloud/models/tint_effect.rb +253 -0
  28. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -2
  29. data/lib/aspose_slides_cloud/type_registry.rb +35 -6
  30. data/lib/aspose_slides_cloud/version.rb +1 -1
  31. data/lib/aspose_slides_cloud.rb +18 -3
  32. data/testRules.json +1 -1
  33. metadata +21 -5
@@ -0,0 +1,233 @@
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
+ # Represents a Color Replacement effect.
27
+ class ColorReplaceEffect < ImageTransformEffect
28
+ # Returns color format which will replace color of every pixel.
29
+ attr_accessor :color
30
+
31
+ class EnumAttributeValidator
32
+ attr_reader :datatype
33
+ attr_reader :allowable_values
34
+
35
+ def initialize(datatype, allowable_values)
36
+ @allowable_values = allowable_values.map do |value|
37
+ case datatype.to_s
38
+ when /Integer/i
39
+ value.to_i
40
+ when /Float/i
41
+ value.to_f
42
+ else
43
+ value
44
+ end
45
+ end
46
+ end
47
+
48
+ def valid?(value)
49
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
50
+ end
51
+ end
52
+
53
+ # Attribute mapping from ruby-style variable name to JSON key.
54
+ def self.attribute_map
55
+ super.merge({
56
+ :'color' => :'Color',
57
+ })
58
+ end
59
+
60
+ # Attribute type mapping.
61
+ def self.swagger_types
62
+ super.merge({
63
+ :'color' => :'String',
64
+ })
65
+ end
66
+
67
+ # Initializes the object
68
+ # @param [Hash] attributes Model attributes in the form of hash
69
+ def initialize(attributes = {})
70
+ super
71
+
72
+ if attributes.has_key?(:'Color')
73
+ self.color = attributes[:'Color']
74
+ end
75
+ self.type = "ColorReplace"
76
+ end
77
+
78
+ # Show invalid properties with the reasons. Usually used together with valid?
79
+ # @return Array for valid properties with the reasons
80
+ def list_invalid_properties
81
+ invalid_properties = super
82
+ invalid_properties
83
+ end
84
+
85
+ # Check to see if the all the properties in the model are valid
86
+ # @return true if the model is valid
87
+ def valid?
88
+ return false if !super
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ type == o.type &&
98
+ color == o.color
99
+ end
100
+
101
+ # @see the `==` method
102
+ # @param [Object] Object to be compared
103
+ def eql?(o)
104
+ self == o
105
+ end
106
+
107
+ # Calculates hash code according to all attributes.
108
+ # @return [Fixnum] Hash code
109
+ def hash
110
+ [type, color].hash
111
+ end
112
+
113
+ # Builds the object from hash
114
+ # @param [Hash] attributes Model attributes in the form of hash
115
+ # @return [Object] Returns the model itself
116
+ def build_from_hash(attributes)
117
+ return nil unless attributes.is_a?(Hash)
118
+ self.class.swagger_types.each_pair do |key, type|
119
+ mapKey = self.class.attribute_map[key]
120
+ if !mapKey.nil?
121
+ val = attributes[mapKey]
122
+ if val.nil?
123
+ mapKeyString = mapKey.to_s
124
+ mapKeyString[0] = mapKeyString[0].downcase
125
+ mapKey = mapKeyString.to_sym
126
+ val = attributes[mapKey]
127
+ end
128
+ if !val.nil?
129
+ if type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the the attribute
131
+ # is documented as an array but the input is not
132
+ if val.is_a?(Array)
133
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
134
+ end
135
+ else
136
+ self.send("#{key}=", _deserialize(type, val))
137
+ end
138
+ end
139
+ end
140
+ end
141
+
142
+ self
143
+ end
144
+
145
+ # Deserializes the data based on type
146
+ # @param string type Data type
147
+ # @param string value Value to be deserialized
148
+ # @return [Object] Deserialized data
149
+ def _deserialize(type, value)
150
+ case type.to_sym
151
+ when :DateTime
152
+ DateTime.parse(value)
153
+ when :Date
154
+ Date.parse(value)
155
+ when :String
156
+ value.to_s
157
+ when :Integer
158
+ value.to_i
159
+ when :Float
160
+ value.to_f
161
+ when :BOOLEAN
162
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
163
+ true
164
+ else
165
+ false
166
+ end
167
+ when :Object
168
+ # generic object (usually a Hash), return directly
169
+ value
170
+ when /\AArray<(?<inner_type>.+)>\z/
171
+ inner_type = Regexp.last_match[:inner_type]
172
+ value.map { |v| _deserialize(inner_type, v) }
173
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
174
+ k_type = Regexp.last_match[:k_type]
175
+ v_type = Regexp.last_match[:v_type]
176
+ {}.tap do |hash|
177
+ value.each do |k, v|
178
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
179
+ end
180
+ end
181
+ else # model
182
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
183
+ if registry_type
184
+ type = registry_type
185
+ end
186
+ temp_model = AsposeSlidesCloud.const_get(type).new
187
+ temp_model.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ next if value.nil?
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+ end
233
+ end
@@ -0,0 +1,243 @@
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
+ # Represents a Duotone effect.
27
+ class DuotoneEffect < ImageTransformEffect
28
+ # Returns target color format for dark pixels.
29
+ attr_accessor :color1
30
+
31
+ # Returns target color format for light pixels.
32
+ attr_accessor :color2
33
+
34
+ class EnumAttributeValidator
35
+ attr_reader :datatype
36
+ attr_reader :allowable_values
37
+
38
+ def initialize(datatype, allowable_values)
39
+ @allowable_values = allowable_values.map do |value|
40
+ case datatype.to_s
41
+ when /Integer/i
42
+ value.to_i
43
+ when /Float/i
44
+ value.to_f
45
+ else
46
+ value
47
+ end
48
+ end
49
+ end
50
+
51
+ def valid?(value)
52
+ !value || allowable_values.any?{ |s| s.casecmp(value) == 0 }
53
+ end
54
+ end
55
+
56
+ # Attribute mapping from ruby-style variable name to JSON key.
57
+ def self.attribute_map
58
+ super.merge({
59
+ :'color1' => :'Color1',
60
+ :'color2' => :'Color2',
61
+ })
62
+ end
63
+
64
+ # Attribute type mapping.
65
+ def self.swagger_types
66
+ super.merge({
67
+ :'color1' => :'String',
68
+ :'color2' => :'String',
69
+ })
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ super
76
+
77
+ if attributes.has_key?(:'Color1')
78
+ self.color1 = attributes[:'Color1']
79
+ end
80
+
81
+ if attributes.has_key?(:'Color2')
82
+ self.color2 = attributes[:'Color2']
83
+ end
84
+ self.type = "Duotone"
85
+ end
86
+
87
+ # Show invalid properties with the reasons. Usually used together with valid?
88
+ # @return Array for valid properties with the reasons
89
+ def list_invalid_properties
90
+ invalid_properties = super
91
+ invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ return false if !super
98
+ true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(o)
104
+ return true if self.equal?(o)
105
+ self.class == o.class &&
106
+ type == o.type &&
107
+ color1 == o.color1 &&
108
+ color2 == o.color2
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(o)
114
+ self == o
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Fixnum] Hash code
119
+ def hash
120
+ [type, color1, color2].hash
121
+ end
122
+
123
+ # Builds the object from hash
124
+ # @param [Hash] attributes Model attributes in the form of hash
125
+ # @return [Object] Returns the model itself
126
+ def build_from_hash(attributes)
127
+ return nil unless attributes.is_a?(Hash)
128
+ self.class.swagger_types.each_pair do |key, type|
129
+ mapKey = self.class.attribute_map[key]
130
+ if !mapKey.nil?
131
+ val = attributes[mapKey]
132
+ if val.nil?
133
+ mapKeyString = mapKey.to_s
134
+ mapKeyString[0] = mapKeyString[0].downcase
135
+ mapKey = mapKeyString.to_sym
136
+ val = attributes[mapKey]
137
+ end
138
+ if !val.nil?
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the the attribute
141
+ # is documented as an array but the input is not
142
+ if val.is_a?(Array)
143
+ self.send("#{key}=", val.map { |v| _deserialize($1, v) })
144
+ end
145
+ else
146
+ self.send("#{key}=", _deserialize(type, val))
147
+ end
148
+ end
149
+ end
150
+ end
151
+
152
+ self
153
+ end
154
+
155
+ # Deserializes the data based on type
156
+ # @param string type Data type
157
+ # @param string value Value to be deserialized
158
+ # @return [Object] Deserialized data
159
+ def _deserialize(type, value)
160
+ case type.to_sym
161
+ when :DateTime
162
+ DateTime.parse(value)
163
+ when :Date
164
+ Date.parse(value)
165
+ when :String
166
+ value.to_s
167
+ when :Integer
168
+ value.to_i
169
+ when :Float
170
+ value.to_f
171
+ when :BOOLEAN
172
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
173
+ true
174
+ else
175
+ false
176
+ end
177
+ when :Object
178
+ # generic object (usually a Hash), return directly
179
+ value
180
+ when /\AArray<(?<inner_type>.+)>\z/
181
+ inner_type = Regexp.last_match[:inner_type]
182
+ value.map { |v| _deserialize(inner_type, v) }
183
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
184
+ k_type = Regexp.last_match[:k_type]
185
+ v_type = Regexp.last_match[:v_type]
186
+ {}.tap do |hash|
187
+ value.each do |k, v|
188
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
189
+ end
190
+ end
191
+ else # model
192
+ registry_type = AsposeSlidesCloud::TypeRegistry.get_type(type.to_s, value)
193
+ if registry_type
194
+ type = registry_type
195
+ end
196
+ temp_model = AsposeSlidesCloud.const_get(type).new
197
+ temp_model.build_from_hash(value)
198
+ end
199
+ end
200
+
201
+ # Returns the string representation of the object
202
+ # @return [String] String presentation of the object
203
+ def to_s
204
+ to_hash.to_s
205
+ end
206
+
207
+ # to_body is an alias to to_hash (backward compatibility)
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_body
210
+ to_hash
211
+ end
212
+
213
+ # Returns the object in the form of hash
214
+ # @return [Hash] Returns the object in the form of hash
215
+ def to_hash
216
+ hash = {}
217
+ self.class.attribute_map.each_pair do |attr, param|
218
+ value = self.send(attr)
219
+ next if value.nil?
220
+ hash[param] = _to_hash(value)
221
+ end
222
+ hash
223
+ end
224
+
225
+ # Outputs non-array value in the form of hash
226
+ # For object, use to_hash. Otherwise, just return the value
227
+ # @param [Object] value Any valid value
228
+ # @return [Hash] Returns the value in the form of hash
229
+ def _to_hash(value)
230
+ if value.is_a?(Array)
231
+ value.compact.map { |v| _to_hash(v) }
232
+ elsif value.is_a?(Hash)
233
+ {}.tap do |hash|
234
+ value.each { |k, v| hash[k] = _to_hash(v) }
235
+ end
236
+ elsif value.respond_to? :to_hash
237
+ value.to_hash
238
+ else
239
+ value
240
+ end
241
+ end
242
+ end
243
+ end
@@ -23,22 +23,13 @@ SOFTWARE.
23
23
  require 'date'
24
24
 
25
25
  module AsposeSlidesCloud
26
- # One value series.
27
- class BoxAndWhiskerSeries < OneValueSeries
28
- # Quartile method.
29
- attr_accessor :quartile_method
26
+ # Represents a Fill Overlay effect. A fill overlay may be used to specify an additional fill for an object and blend the two fills together.
27
+ class FillOverlayImageEffect < ImageTransformEffect
28
+ # FillBlendMode.
29
+ attr_accessor :blend
30
30
 
31
- # True if inner points are shown.
32
- attr_accessor :show_inner_points
33
-
34
- # True if mean line is shown.
35
- attr_accessor :show_mean_line
36
-
37
- # True if mean markers are shown.
38
- attr_accessor :show_mean_markers
39
-
40
- # True if outlier points are shown.
41
- attr_accessor :show_outlier_points
31
+ # Fill format.
32
+ attr_accessor :fill_format
42
33
 
43
34
  class EnumAttributeValidator
44
35
  attr_reader :datatype
@@ -65,22 +56,16 @@ module AsposeSlidesCloud
65
56
  # Attribute mapping from ruby-style variable name to JSON key.
66
57
  def self.attribute_map
67
58
  super.merge({
68
- :'quartile_method' => :'QuartileMethod',
69
- :'show_inner_points' => :'ShowInnerPoints',
70
- :'show_mean_line' => :'ShowMeanLine',
71
- :'show_mean_markers' => :'ShowMeanMarkers',
72
- :'show_outlier_points' => :'ShowOutlierPoints',
59
+ :'blend' => :'Blend',
60
+ :'fill_format' => :'FillFormat',
73
61
  })
74
62
  end
75
63
 
76
64
  # Attribute type mapping.
77
65
  def self.swagger_types
78
66
  super.merge({
79
- :'quartile_method' => :'String',
80
- :'show_inner_points' => :'BOOLEAN',
81
- :'show_mean_line' => :'BOOLEAN',
82
- :'show_mean_markers' => :'BOOLEAN',
83
- :'show_outlier_points' => :'BOOLEAN',
67
+ :'blend' => :'String',
68
+ :'fill_format' => :'FillFormat',
84
69
  })
85
70
  end
86
71
 
@@ -89,32 +74,24 @@ module AsposeSlidesCloud
89
74
  def initialize(attributes = {})
90
75
  super
91
76
 
92
- if attributes.has_key?(:'QuartileMethod')
93
- self.quartile_method = attributes[:'QuartileMethod']
77
+ if attributes.has_key?(:'Blend')
78
+ self.blend = attributes[:'Blend']
94
79
  end
95
80
 
96
- if attributes.has_key?(:'ShowInnerPoints')
97
- self.show_inner_points = attributes[:'ShowInnerPoints']
81
+ if attributes.has_key?(:'FillFormat')
82
+ self.fill_format = attributes[:'FillFormat']
98
83
  end
99
-
100
- if attributes.has_key?(:'ShowMeanLine')
101
- self.show_mean_line = attributes[:'ShowMeanLine']
102
- end
103
-
104
- if attributes.has_key?(:'ShowMeanMarkers')
105
- self.show_mean_markers = attributes[:'ShowMeanMarkers']
106
- end
107
-
108
- if attributes.has_key?(:'ShowOutlierPoints')
109
- self.show_outlier_points = attributes[:'ShowOutlierPoints']
110
- end
111
- self.data_point_type = "OneValue"
84
+ self.type = "FillOverlay"
112
85
  end
113
86
 
114
87
  # Show invalid properties with the reasons. Usually used together with valid?
115
88
  # @return Array for valid properties with the reasons
116
89
  def list_invalid_properties
117
90
  invalid_properties = super
91
+ if @blend.nil?
92
+ invalid_properties.push('invalid value for "blend", blend cannot be nil.')
93
+ end
94
+
118
95
  invalid_properties
119
96
  end
120
97
 
@@ -122,19 +99,20 @@ module AsposeSlidesCloud
122
99
  # @return true if the model is valid
123
100
  def valid?
124
101
  return false if !super
125
- quartile_method_validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive'])
126
- return false unless quartile_method_validator.valid?(@quartile_method)
102
+ return false if @blend.nil?
103
+ blend_validator = EnumAttributeValidator.new('String', ['Darken', 'Lighten', 'Multiply', 'Overlay', 'Screen'])
104
+ return false unless blend_validator.valid?(@blend)
127
105
  true
128
106
  end
129
107
 
130
108
  # Custom attribute writer method checking allowed values (enum).
131
- # @param [Object] quartile_method Object to be assigned
132
- def quartile_method=(quartile_method)
133
- validator = EnumAttributeValidator.new('String', ['Exclusive', 'Inclusive'])
134
- unless validator.valid?(quartile_method)
135
- fail ArgumentError, 'invalid value for "quartile_method", must be one of #{validator.allowable_values}.'
109
+ # @param [Object] blend Object to be assigned
110
+ def blend=(blend)
111
+ validator = EnumAttributeValidator.new('String', ['Darken', 'Lighten', 'Multiply', 'Overlay', 'Screen'])
112
+ unless validator.valid?(blend)
113
+ fail ArgumentError, 'invalid value for "blend", must be one of #{validator.allowable_values}.'
136
114
  end
137
- @quartile_method = quartile_method
115
+ @blend = blend
138
116
  end
139
117
 
140
118
  # Checks equality by comparing each attribute.
@@ -143,26 +121,8 @@ module AsposeSlidesCloud
143
121
  return true if self.equal?(o)
144
122
  self.class == o.class &&
145
123
  type == o.type &&
146
- name == o.name &&
147
- is_color_varied == o.is_color_varied &&
148
- inverted_solid_fill_color == o.inverted_solid_fill_color &&
149
- smooth == o.smooth &&
150
- plot_on_second_axis == o.plot_on_second_axis &&
151
- order == o.order &&
152
- invert_if_negative == o.invert_if_negative &&
153
- explosion == o.explosion &&
154
- marker == o.marker &&
155
- fill_format == o.fill_format &&
156
- effect_format == o.effect_format &&
157
- line_format == o.line_format &&
158
- data_point_type == o.data_point_type &&
159
- data_points == o.data_points &&
160
- number_format_of_values == o.number_format_of_values &&
161
- quartile_method == o.quartile_method &&
162
- show_inner_points == o.show_inner_points &&
163
- show_mean_line == o.show_mean_line &&
164
- show_mean_markers == o.show_mean_markers &&
165
- show_outlier_points == o.show_outlier_points
124
+ blend == o.blend &&
125
+ fill_format == o.fill_format
166
126
  end
167
127
 
168
128
  # @see the `==` method
@@ -174,7 +134,7 @@ module AsposeSlidesCloud
174
134
  # Calculates hash code according to all attributes.
175
135
  # @return [Fixnum] Hash code
176
136
  def hash
177
- [type, name, is_color_varied, inverted_solid_fill_color, smooth, plot_on_second_axis, order, invert_if_negative, explosion, marker, fill_format, effect_format, line_format, data_point_type, data_points, number_format_of_values, quartile_method, show_inner_points, show_mean_line, show_mean_markers, show_outlier_points].hash
137
+ [type, blend, fill_format].hash
178
138
  end
179
139
 
180
140
  # Builds the object from hash