class AsposeSlidesCloud::Html5ExportOptions

Provides options that control how a presentation is saved in Html5 format.

Attributes

animate_shapes[RW]

Gets or sets shapes animation option.

animate_transitions[RW]

Gets or sets transitions animation option.

embed_images[RW]

Gets or sets embed images option.

notes_comments_layouting[RW]

Slides layouting options

templates_path[RW]

Path to custom templates

Public Class Methods

attribute_map() click to toggle source

Attribute mapping from ruby-style variable name to JSON key.

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 44
def self.attribute_map
  super.merge({
    :'animate_transitions' => :'AnimateTransitions',
    :'animate_shapes' => :'AnimateShapes',
    :'embed_images' => :'EmbedImages',
    :'notes_comments_layouting' => :'NotesCommentsLayouting',
    :'templates_path' => :'TemplatesPath',
  })
end
new(attributes = {}) click to toggle source

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Calls superclass method AsposeSlidesCloud::ExportOptions::new
# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 67
def initialize(attributes = {})
  super

  if attributes.has_key?(:'AnimateTransitions')
    self.animate_transitions = attributes[:'AnimateTransitions']
  end

  if attributes.has_key?(:'AnimateShapes')
    self.animate_shapes = attributes[:'AnimateShapes']
  end

  if attributes.has_key?(:'EmbedImages')
    self.embed_images = attributes[:'EmbedImages']
  end

  if attributes.has_key?(:'NotesCommentsLayouting')
    self.notes_comments_layouting = attributes[:'NotesCommentsLayouting']
  end

  if attributes.has_key?(:'TemplatesPath')
    self.templates_path = attributes[:'TemplatesPath']
  end
  self.format = 'html5'
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 55
def self.swagger_types
  super.merge({
    :'animate_transitions' => :'BOOLEAN',
    :'animate_shapes' => :'BOOLEAN',
    :'embed_images' => :'BOOLEAN',
    :'notes_comments_layouting' => :'NotesCommentsLayoutingOptions',
    :'templates_path' => :'String',
  })
end

Public Instance Methods

==(o) click to toggle source

Checks equality by comparing each attribute. @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 108
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 &&
      animate_transitions == o.animate_transitions &&
      animate_shapes == o.animate_shapes &&
      embed_images == o.embed_images &&
      notes_comments_layouting == o.notes_comments_layouting &&
      templates_path == o.templates_path
end
eql?(o) click to toggle source

@see the ‘==` method @param [Object] Object to be compared

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 125
def eql?(o)
  self == o
end
hash() click to toggle source

Calculates hash code according to all attributes. @return [Fixnum] Hash code

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 131
def hash
  [default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, animate_transitions, animate_shapes, embed_images, notes_comments_layouting, templates_path].hash
end
list_invalid_properties() click to toggle source

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 94
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
valid?() click to toggle source

Check to see if the all the properties in the model are valid @return true if the model is valid

Calls superclass method AsposeSlidesCloud::ExportOptions#valid?
# File lib/aspose_slides_cloud/models/html5_export_options.rb, line 101
def valid?
  return false if !super
  true
end