Class: AsposeSlidesCloud::SlideShowProperties
- Inherits:
-
ResourceBase
- Object
- BaseObject
- ResourceBase
- AsposeSlidesCloud::SlideShowProperties
- Defined in:
- lib/aspose_slides_cloud/models/slide_show_properties.rb
Overview
Slide show properties.
Instance Attribute Summary collapse
-
#end_slide ⇒ Object
End slides in the slide show.
-
#loop ⇒ Object
Loop slide show.
-
#pen_color ⇒ Object
Pen color.
-
#show_animation ⇒ Object
Show animation.
-
#show_media_controls ⇒ Object
Show media controls.
-
#show_narration ⇒ Object
Show narrration.
-
#show_scrollbar ⇒ Object
Show scroll bar.
-
#slide_show_type ⇒ Object
Slide show type.
-
#start_slide ⇒ Object
Start slide in the slide show.
-
#use_timings ⇒ Object
Use timings.
Attributes inherited from ResourceBase
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 = {}) ⇒ SlideShowProperties
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 = {}) ⇒ SlideShowProperties
Initializes the object
92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 92 def initialize(attributes = {}) super if attributes.has_key?(:'Loop') self.loop = attributes[:'Loop'] end if attributes.has_key?(:'StartSlide') self. = attributes[:'StartSlide'] end if attributes.has_key?(:'EndSlide') self. = attributes[:'EndSlide'] end if attributes.has_key?(:'PenColor') self.pen_color = attributes[:'PenColor'] end if attributes.has_key?(:'ShowAnimation') self.show_animation = attributes[:'ShowAnimation'] end if attributes.has_key?(:'ShowNarration') self.show_narration = attributes[:'ShowNarration'] end if attributes.has_key?(:'ShowMediaControls') self.show_media_controls = attributes[:'ShowMediaControls'] end if attributes.has_key?(:'UseTimings') self.use_timings = attributes[:'UseTimings'] end if attributes.has_key?(:'SlideShowType') self. = attributes[:'SlideShowType'] end if attributes.has_key?(:'ShowScrollbar') self. = attributes[:'ShowScrollbar'] end end |
Instance Attribute Details
#end_slide ⇒ Object
End slides in the slide show.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 35 def @end_slide end |
#loop ⇒ Object
Loop slide show.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 29 def loop @loop end |
#pen_color ⇒ Object
Pen color.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 38 def pen_color @pen_color end |
#show_animation ⇒ Object
Show animation.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 41 def show_animation @show_animation end |
#show_media_controls ⇒ Object
Show media controls.
47 48 49 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 47 def show_media_controls @show_media_controls end |
#show_narration ⇒ Object
Show narrration.
44 45 46 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 44 def show_narration @show_narration end |
#show_scrollbar ⇒ Object
Show scroll bar. Applied with BrowsedByIndividual slide show type.
56 57 58 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 56 def @show_scrollbar end |
#slide_show_type ⇒ Object
Slide show type.
53 54 55 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 53 def @slide_show_type end |
#start_slide ⇒ Object
Start slide in the slide show.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 32 def @start_slide end |
#use_timings ⇒ Object
Use timings.
50 51 52 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 50 def use_timings @use_timings end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 59 def self.attribute_map super.merge({ :'loop' => :'Loop', :'start_slide' => :'StartSlide', :'end_slide' => :'EndSlide', :'pen_color' => :'PenColor', :'show_animation' => :'ShowAnimation', :'show_narration' => :'ShowNarration', :'show_media_controls' => :'ShowMediaControls', :'use_timings' => :'UseTimings', :'slide_show_type' => :'SlideShowType', :'show_scrollbar' => :'ShowScrollbar', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 75 def self.swagger_types super.merge({ :'loop' => :'BOOLEAN', :'start_slide' => :'Integer', :'end_slide' => :'Integer', :'pen_color' => :'String', :'show_animation' => :'BOOLEAN', :'show_narration' => :'BOOLEAN', :'show_media_controls' => :'BOOLEAN', :'use_timings' => :'BOOLEAN', :'slide_show_type' => :'String', :'show_scrollbar' => :'BOOLEAN', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 164 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && loop == o.loop && == o. && == o. && pen_color == o.pen_color && show_animation == o.show_animation && show_narration == o.show_narration && show_media_controls == o.show_media_controls && use_timings == o.use_timings && == o. && == o. end |
#eql?(o) ⇒ Boolean
183 184 185 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 183 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
189 190 191 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 189 def hash [self_uri, alternate_links, loop, , , pen_color, show_animation, show_narration, show_media_controls, use_timings, , ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
138 139 140 141 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 138 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
145 146 147 148 149 150 |
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 145 def valid? return false if !super = EnumAttributeValidator.new('String', ['BrowsedAtKiosk', 'BrowsedByIndividual', 'PresentedBySpeaker']) return false unless .valid?(@slide_show_type) true end |