Class: AsposeSlidesCloud::VideoExportOptions
- Inherits:
-
ExportOptions
- Object
- BaseObject
- ExportOptions
- AsposeSlidesCloud::VideoExportOptions
- Defined in:
- lib/aspose_slides_cloud/models/video_export_options.rb
Overview
Provides options that control how a presentation is saved in an video format.
Instance Attribute Summary collapse
-
#slides_transition_duration ⇒ Object
Slides transition duration.
-
#transition_duration ⇒ Object
Duration of transition defined in TransitionType property.
-
#transition_type ⇒ Object
Video transition type.
-
#video_resolution_type ⇒ Object
Video resolution type.
Attributes inherited from ExportOptions
#default_regular_font, #delete_embedded_binary_objects, #font_fallback_rules, #font_subst_rules, #format, #gradient_style
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ VideoExportOptions
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Methods inherited from BaseObject
#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s
Constructor Details
#initialize(attributes = {}) ⇒ VideoExportOptions
Initializes the object
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 62 def initialize(attributes = {}) super if attributes.has_key?(:'SlidesTransitionDuration') self. = 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 |
Instance Attribute Details
#slides_transition_duration ⇒ Object
Slides transition duration.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 29 def @slides_transition_duration end |
#transition_duration ⇒ Object
Duration of transition defined in TransitionType property.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 35 def transition_duration @transition_duration end |
#transition_type ⇒ Object
Video transition type
32 33 34 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 32 def transition_type @transition_type end |
#video_resolution_type ⇒ Object
Video resolution type
38 39 40 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 38 def video_resolution_type @video_resolution_type end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
41 42 43 44 45 46 47 48 |
# 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 |
.swagger_types ⇒ Object
Attribute type mapping.
51 52 53 54 55 56 57 58 |
# 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 |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
# 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 && == o. && gradient_style == o.gradient_style && font_fallback_rules == o.font_fallback_rules && font_subst_rules == o.font_subst_rules && format == o.format && == o. && transition_type == o.transition_type && transition_duration == o.transition_duration && video_resolution_type == o.video_resolution_type end |
#eql?(o) ⇒ Boolean
140 141 142 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 140 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
146 147 148 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 146 def hash [default_regular_font, , gradient_style, font_fallback_rules, font_subst_rules, format, , transition_type, transition_duration, video_resolution_type].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
85 86 87 88 |
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 85 def list_invalid_properties invalid_properties = super invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
92 93 94 95 96 97 98 99 |
# 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 |