Class: AsposeSlidesCloud::Slide
- Inherits:
-
ResourceBase
- Object
- BaseObject
- ResourceBase
- AsposeSlidesCloud::Slide
- Defined in:
- lib/aspose_slides_cloud/models/slide.rb
Overview
Presentation slide.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#background ⇒ Object
Get or sets the link to slide’s background.
-
#comments ⇒ Object
Gets or sets the link to comments.
-
#height ⇒ Object
Gets or sets the height.
-
#images ⇒ Object
Gets or sets the link to images.
-
#layout_slide ⇒ Object
Gets or sets the link to the layout slide.
-
#notes_slide ⇒ Object
Get or sets the link to notes slide.
-
#placeholders ⇒ Object
Gets or sets the link to placeholders.
-
#shapes ⇒ Object
Gets or sets the link to list of top-level shapes.
-
#show_master_shapes ⇒ Object
Specifies if shapes of the master slide should be shown on the slide.
-
#slide_show_transition ⇒ Object
Specifies if shapes of the master slide should be shown on the slide.
-
#theme ⇒ Object
Gets or sets the link to theme.
-
#width ⇒ Object
Gets or sets the width.
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 = {}) ⇒ Slide
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 = {}) ⇒ Slide
Initializes the object
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 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 102 def initialize(attributes = {}) super if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'Height') self.height = attributes[:'Height'] end if attributes.has_key?(:'ShowMasterShapes') self.show_master_shapes = attributes[:'ShowMasterShapes'] end if attributes.has_key?(:'SlideShowTransition') self. = attributes[:'SlideShowTransition'] end if attributes.has_key?(:'LayoutSlide') self. = attributes[:'LayoutSlide'] end if attributes.has_key?(:'Shapes') self.shapes = attributes[:'Shapes'] end if attributes.has_key?(:'Theme') self.theme = attributes[:'Theme'] end if attributes.has_key?(:'Placeholders') self.placeholders = attributes[:'Placeholders'] end if attributes.has_key?(:'Images') self.images = attributes[:'Images'] end if attributes.has_key?(:'Comments') self.comments = attributes[:'Comments'] end if attributes.has_key?(:'Background') self.background = attributes[:'Background'] end if attributes.has_key?(:'NotesSlide') self. = attributes[:'NotesSlide'] end end |
Instance Attribute Details
#background ⇒ Object
Get or sets the link to slide’s background
59 60 61 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 59 def background @background end |
#comments ⇒ Object
Gets or sets the link to comments.
56 57 58 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 56 def comments @comments end |
#height ⇒ Object
Gets or sets the height.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 32 def height @height end |
#images ⇒ Object
Gets or sets the link to images.
53 54 55 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 53 def images @images end |
#layout_slide ⇒ Object
Gets or sets the link to the layout slide.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 41 def @layout_slide end |
#notes_slide ⇒ Object
Get or sets the link to notes slide.
62 63 64 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 62 def @notes_slide end |
#placeholders ⇒ Object
Gets or sets the link to placeholders.
50 51 52 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 50 def placeholders @placeholders end |
#shapes ⇒ Object
Gets or sets the link to list of top-level shapes.
44 45 46 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 44 def shapes @shapes end |
#show_master_shapes ⇒ Object
Specifies if shapes of the master slide should be shown on the slide. True by default.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 35 def show_master_shapes @show_master_shapes end |
#slide_show_transition ⇒ Object
Specifies if shapes of the master slide should be shown on the slide. True by default.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 38 def @slide_show_transition end |
#theme ⇒ Object
Gets or sets the link to theme.
47 48 49 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 47 def theme @theme end |
#width ⇒ Object
Gets or sets the width.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 29 def width @width end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 65 def self.attribute_map super.merge({ :'width' => :'Width', :'height' => :'Height', :'show_master_shapes' => :'ShowMasterShapes', :'slide_show_transition' => :'SlideShowTransition', :'layout_slide' => :'LayoutSlide', :'shapes' => :'Shapes', :'theme' => :'Theme', :'placeholders' => :'Placeholders', :'images' => :'Images', :'comments' => :'Comments', :'background' => :'Background', :'notes_slide' => :'NotesSlide', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 83 def self.swagger_types super.merge({ :'width' => :'Float', :'height' => :'Float', :'show_master_shapes' => :'BOOLEAN', :'slide_show_transition' => :'SlideShowTransition', :'layout_slide' => :'ResourceUri', :'shapes' => :'ResourceUri', :'theme' => :'ResourceUri', :'placeholders' => :'ResourceUri', :'images' => :'ResourceUri', :'comments' => :'ResourceUri', :'background' => :'ResourceUri', :'notes_slide' => :'ResourceUri', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 180 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && width == o.width && height == o.height && show_master_shapes == o.show_master_shapes && == o. && == o. && shapes == o.shapes && theme == o.theme && placeholders == o.placeholders && images == o.images && comments == o.comments && background == o.background && == o. end |
#eql?(o) ⇒ Boolean
201 202 203 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 201 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
207 208 209 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 207 def hash [self_uri, alternate_links, width, height, show_master_shapes, , , shapes, theme, placeholders, images, comments, background, ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
156 157 158 159 160 161 162 163 164 165 166 167 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 156 def list_invalid_properties invalid_properties = super if @width.nil? invalid_properties.push('invalid value for "width", width cannot be nil.') end if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') end invalid_properties end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
171 172 173 174 175 176 |
# File 'lib/aspose_slides_cloud/models/slide.rb', line 171 def valid? return false if !super return false if @width.nil? return false if @height.nil? true end |