Class: AsposeSlidesCloud::VideoExportOptions

Inherits:
ExportOptions show all
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

Attributes inherited from ExportOptions

#default_regular_font, #delete_embedded_binary_objects, #font_fallback_rules, #font_subst_rules, #format, #gradient_style

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseObject

#_deserialize, #_to_hash, #build_from_hash, #to_body, #to_hash, #to_s

Constructor Details

#initialize(attributes = {}) ⇒ VideoExportOptions

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash



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.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

Instance Attribute Details

#slides_transition_durationObject

Slides transition duration.



29
30
31
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 29

def slides_transition_duration
  @slides_transition_duration
end

#transition_durationObject

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_typeObject

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_typeObject

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_mapObject

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_typesObject

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.

Parameters:

  • Object (Object)

    to be compared



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 &&
      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 &&
      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) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


140
141
142
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 140

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



146
147
148
# File 'lib/aspose_slides_cloud/models/video_export_options.rb', line 146

def hash
  [default_regular_font, delete_embedded_binary_objects, gradient_style, font_fallback_rules, font_subst_rules, format, slides_transition_duration, transition_type, transition_duration, video_resolution_type].hash
end

#list_invalid_propertiesObject

Show invalid properties with the reasons. Usually used together with valid?

Returns:

  • Array for valid properties with the reasons



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

Returns:

  • (Boolean)

    true if the model is 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