class AsposeSlidesCloud::VideoExportOptions
Provides options that control how a presentation is saved in an video format.
Attributes
Slides
transition duration.
Duration of transition defined in TransitionType property.
Video transition type
Video resolution type
Public Class Methods
Source
# 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
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ExportOptions::attribute_map
Source
# 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
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ExportOptions::new
Source
# 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
Attribute type mapping.
AsposeSlidesCloud::ExportOptions::swagger_types
Public Instance Methods
Source
# 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 && 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 && 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
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/video_export_options.rb, line 141 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/video_export_options.rb, line 147 def hash [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, skip_java_script_links, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/video_export_options.rb, line 85 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/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
Custom attribute writer method checking allowed values (enum). @param [Object] transition_type
Object to be assigned
Source
# 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
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/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
Custom attribute writer method checking allowed values (enum). @param [Object] video_resolution_type
Object to be assigned