Class: AsposeSlidesCloud::SlideShowProperties

Inherits:
ResourceBase show all
Defined in:
lib/aspose_slides_cloud/models/slide_show_properties.rb

Overview

Slide show properties.

Instance Attribute Summary collapse

Attributes inherited from ResourceBase

#alternate_links, #self_uri

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 = {}) ⇒ SlideShowProperties

Initializes the object

Parameters:

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

    Model attributes in the form of hash



87
88
89
90
91
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
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 87

def initialize(attributes = {})
  super

  if attributes.has_key?(:'Loop')
    self.loop = attributes[:'Loop']
  end

  if attributes.has_key?(:'StartSlide')
    self.start_slide = attributes[:'StartSlide']
  end

  if attributes.has_key?(:'EndSlide')
    self.end_slide = 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?(:'UseTimings')
    self.use_timings = attributes[:'UseTimings']
  end

  if attributes.has_key?(:'SlideShowType')
    self.slide_show_type = attributes[:'SlideShowType']
  end

  if attributes.has_key?(:'ShowScrollbar')
    self.show_scrollbar = attributes[:'ShowScrollbar']
  end
end

Instance Attribute Details

#end_slideObject

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_slide
end

#loopObject

Loop slide show.



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

def loop
  @loop
end

#pen_colorObject

Pen color.



38
39
40
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 38

def pen_color
  @pen_color
end

#show_animationObject

Show animation.



41
42
43
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 41

def show_animation
  @show_animation
end

#show_narrationObject

Show narrration.



44
45
46
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 44

def show_narration
  @show_narration
end

#show_scrollbarObject

Show scroll bar. Applied with BrowsedByIndividual slide show type.



53
54
55
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 53

def show_scrollbar
  @show_scrollbar
end

#slide_show_typeObject

Slide show type.



50
51
52
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 50

def slide_show_type
  @slide_show_type
end

#start_slideObject

Start slide in the slide show.



32
33
34
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 32

def start_slide
  @start_slide
end

#use_timingsObject

Use timings.



47
48
49
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 47

def use_timings
  @use_timings
end

Class Method Details

.attribute_mapObject

Attribute mapping from ruby-style variable name to JSON key.



56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 56

def self.attribute_map
  super.merge({
    :'loop' => :'Loop',
    :'start_slide' => :'StartSlide',
    :'end_slide' => :'EndSlide',
    :'pen_color' => :'PenColor',
    :'show_animation' => :'ShowAnimation',
    :'show_narration' => :'ShowNarration',
    :'use_timings' => :'UseTimings',
    :'slide_show_type' => :'SlideShowType',
    :'show_scrollbar' => :'ShowScrollbar',
  })
end

.swagger_typesObject

Attribute type mapping.



71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 71

def self.swagger_types
  super.merge({
    :'loop' => :'BOOLEAN',
    :'start_slide' => :'Integer',
    :'end_slide' => :'Integer',
    :'pen_color' => :'String',
    :'show_animation' => :'BOOLEAN',
    :'show_narration' => :'BOOLEAN',
    :'use_timings' => :'BOOLEAN',
    :'slide_show_type' => :'String',
    :'show_scrollbar' => :'BOOLEAN',
  })
end

Instance Method Details

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 155

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 &&
      start_slide == o.start_slide &&
      end_slide == o.end_slide &&
      pen_color == o.pen_color &&
      show_animation == o.show_animation &&
      show_narration == o.show_narration &&
      use_timings == o.use_timings &&
      slide_show_type == o.slide_show_type &&
      show_scrollbar == o.show_scrollbar
end

#eql?(o) ⇒ Boolean

Parameters:

  • Object (Object)

    to be compared

Returns:

  • (Boolean)

See Also:

  • `==` method


173
174
175
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 173

def eql?(o)
  self == o
end

#hashFixnum

Calculates hash code according to all attributes.

Returns:

  • (Fixnum)

    Hash code



179
180
181
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 179

def hash
  [self_uri, alternate_links, loop, start_slide, end_slide, pen_color, show_animation, show_narration, use_timings, slide_show_type, show_scrollbar].hash
end

#list_invalid_propertiesObject

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

Returns:

  • Array for valid properties with the reasons



129
130
131
132
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 129

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



136
137
138
139
140
141
# File 'lib/aspose_slides_cloud/models/slide_show_properties.rb', line 136

def valid?
  return false if !super
  slide_show_type_validator = EnumAttributeValidator.new('String', ['BrowsedAtKiosk', 'BrowsedByIndividual', 'PresentedBySpeaker'])
  return false unless slide_show_type_validator.valid?(@slide_show_type)
  true
end