class AsposeSlidesCloud::VideoExportOptions

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

Attributes

slides_transition_duration[RW]

Slides transition duration.

transition_duration[RW]

Duration of transition defined in TransitionType property.

transition_type[RW]

Video transition type

video_resolution_type[RW]

Video resolution type

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/video_export_options.rb, line 41
def self.attribute_map
  super.merge({
    :'slides_transition_duration' => :'SlidesTransitionDuration',
    :'transition_type' => :'TransitionType',
    :'transition_duration' => :'TransitionDuration',
    :'video_resolution_type' => :'VideoResolutionType',
  })
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/video_export_options.rb, line 62
def initialize(attributes = {})
  super

  if attributes.has_key?(:'SlidesTransitionDuration')
    self.slides_transition_duration = attributes[:'SlidesTransitionDuration']
  end

  if attributes.has_key?(:'TransitionType')
    self.transition_type = attributes[:'TransitionType']
  end

  if attributes.has_key?(:'TransitionDuration')
    self.transition_duration = attributes[:'TransitionDuration']
  end

  if attributes.has_key?(:'VideoResolutionType')
    self.video_resolution_type = attributes[:'VideoResolutionType']
  end
  self.format = 'mpeg4'
end
swagger_types() click to toggle source

Attribute type mapping.

# File lib/aspose_slides_cloud/models/video_export_options.rb, line 51
def self.swagger_types
  super.merge({
    :'slides_transition_duration' => :'Integer',
    :'transition_type' => :'String',
    :'transition_duration' => :'Integer',
    :'video_resolution_type' => :'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/video_export_options.rb, line 123
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 &&
      slides_transition_duration == o.slides_transition_duration &&
      transition_type == o.transition_type &&
      transition_duration == o.transition_duration &&
      video_resolution_type == o.video_resolution_type
end
eql?(o) click to toggle source

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

# File lib/aspose_slides_cloud/models/video_export_options.rb, line 139
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/video_export_options.rb, line 145
def hash
  [default_regular_font, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].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/video_export_options.rb, line 85
def list_invalid_properties
  invalid_properties = super
  invalid_properties
end
transition_type=(transition_type) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] transition_type Object to be assigned

# File lib/aspose_slides_cloud/models/video_export_options.rb, line 103
def transition_type=(transition_type)
  validator = EnumAttributeValidator.new('String', ['None', 'Fade', 'Distance', 'Slidedown', 'Slideright', 'Slideleft', 'Slideup', 'Smoothleft', 'Smoothright', 'Smoothup', 'Smoothdown', 'Rectcrop', 'Circlecrop', 'Circleclose', 'Circleopen', 'Horzclose', 'Horzopen', 'Vertclose', 'Vertopen', 'Diagbl', 'Diagbr', 'Diagtl', 'Diagtr', 'Hlslice', 'Hrslice', 'Vuslice', 'Vdslice', 'Dissolve', 'Pixelize', 'Radial'])
  unless validator.valid?(transition_type)
    fail ArgumentError, 'invalid value for "transition_type", must be one of #{validator.allowable_values}.'
  end
  @transition_type = transition_type
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/video_export_options.rb, line 92
def valid?
  return false if !super
  transition_type_validator = EnumAttributeValidator.new('String', ['None', 'Fade', 'Distance', 'Slidedown', 'Slideright', 'Slideleft', 'Slideup', 'Smoothleft', 'Smoothright', 'Smoothup', 'Smoothdown', 'Rectcrop', 'Circlecrop', 'Circleclose', 'Circleopen', 'Horzclose', 'Horzopen', 'Vertclose', 'Vertopen', 'Diagbl', 'Diagbr', 'Diagtl', 'Diagtr', 'Hlslice', 'Hrslice', 'Vuslice', 'Vdslice', 'Dissolve', 'Pixelize', 'Radial'])
  return false unless transition_type_validator.valid?(@transition_type)
  video_resolution_type_validator = EnumAttributeValidator.new('String', ['FullHD', 'SD', 'HD', 'QHD'])
  return false unless video_resolution_type_validator.valid?(@video_resolution_type)
  true
end
video_resolution_type=(video_resolution_type) click to toggle source

Custom attribute writer method checking allowed values (enum). @param [Object] video_resolution_type Object to be assigned

# File lib/aspose_slides_cloud/models/video_export_options.rb, line 113
def video_resolution_type=(video_resolution_type)
  validator = EnumAttributeValidator.new('String', ['FullHD', 'SD', 'HD', 'QHD'])
  unless validator.valid?(video_resolution_type)
    fail ArgumentError, 'invalid value for "video_resolution_type", must be one of #{validator.allowable_values}.'
  end
  @video_resolution_type = video_resolution_type
end