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.
Specifies whether the ZIP64 format is used for the Presentation document. The default value is Zip64Mode.IfNecessary.
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ExportOptions::attribute_map
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 35 def self.attribute_map super.merge({ :'conformance' => :'Conformance', :'zip64_mode' => :'Zip64Mode', }) end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ExportOptions::new
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 52 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 self.format = 'pptx' end
Attribute type mapping.
AsposeSlidesCloud::ExportOptions::swagger_types
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 43 def self.swagger_types super.merge({ :'conformance' => :'String', :'zip64_mode' => :'String', }) end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 105 def ==(o) return true if self.equal?(o) self.class == o.class && default_regular_font == o.default_regular_font && gradient_style == o.gradient_style && font_fallback_rules == o.font_fallback_rules && font_subst_rules == o.font_subst_rules && format == o.format && conformance == o.conformance && zip64_mode == o.zip64_mode end
Custom attribute writer method checking allowed values (enum). @param [Object] conformance Object to be assigned
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 85 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
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 119 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 125 def hash [default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, conformance, zip64_mode].hash 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
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 67 def list_invalid_properties invalid_properties = super invalid_properties end
Check to see if the all the properties in the model are valid @return true if the model is valid
AsposeSlidesCloud::ExportOptions#valid?
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 74 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
Custom attribute writer method checking allowed values (enum). @param [Object] zip64_mode
Object to be assigned
# File lib/aspose_slides_cloud/models/pptx_export_options.rb, line 95 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