class AsposeSlidesCloud::PptxExportOptions
Provides options that control how a presentation is saved in PPTX format.
Attributes
The conformance class to which the PresentationML document conforms.
True to refresh the presentation thumbnail on save
Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 38 def self.attribute_map super.merge({ :'conformance' => :'Conformance', :'zip64_mode' => :'Zip64Mode', :'refresh_thumbnail' => :'RefreshThumbnail', }) end
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ExportOptions::attribute_map
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 57 def initialize(attributes = {}) super if attributes.has_key?(:'Conformance') self.conformance = attributes[:'Conformance'] end if attributes.has_key?(:'Zip64Mode') self.zip64_mode = attributes[:'Zip64Mode'] end if attributes.has_key?(:'RefreshThumbnail') self.refresh_thumbnail = attributes[:'RefreshThumbnail'] end self.format = 'pptx' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ExportOptions::new
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 47 def self.swagger_types super.merge({ :'conformance' => :'String', :'zip64_mode' => :'String', :'refresh_thumbnail' => :'BOOLEAN', }) end
Attribute type mapping.
AsposeSlidesCloud::ExportOptions::swagger_types
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 114 def ==(o) return true if self.equal?(o) self.class == o.class && default_regular_font == o.default_regular_font && delete_embedded_binary_objects == o.delete_embedded_binary_objects && gradient_style == o.gradient_style && font_fallback_rules == o.font_fallback_rules && font_subst_rules == o.font_subst_rules && skip_java_script_links == o.skip_java_script_links && format == o.format && conformance == o.conformance && zip64_mode == o.zip64_mode && refresh_thumbnail == o.refresh_thumbnail end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 94 def conformance=(conformance) validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict']) unless validator.valid?(conformance) fail ArgumentError, 'invalid value for "conformance", must be one of #{validator.allowable_values}.' end @conformance = conformance end
Custom attribute writer method checking allowed values (enum). @param [Object] conformance Object to be assigned
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 131 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 137 def hash [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 end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 76 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
AsposeSlidesCloud::ExportOptions#list_invalid_properties
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 83 def valid? return false if !super conformance_validator = EnumAttributeValidator.new('String', ['Ecma376', 'Iso29500Transitional', 'Iso29500Strict']) return false unless conformance_validator.valid?(@conformance) zip64_mode_validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always']) return false unless zip64_mode_validator.valid?(@zip64_mode) true end
Check to see if the all the properties in the model are valid @return true if the model is valid
AsposeSlidesCloud::ExportOptions#valid?
Source
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 104 def zip64_mode=(zip64_mode) validator = EnumAttributeValidator.new('String', ['Never', 'IfNecessary', 'Always']) unless validator.valid?(zip64_mode) fail ArgumentError, 'invalid value for "zip64_mode", must be one of #{validator.allowable_values}.' end @zip64_mode = zip64_mode end
Custom attribute writer method checking allowed values (enum). @param [Object] zip64_mode
Object to be assigned