Class: AsposeSlidesCloud::SlideProperties
- Inherits:
-
ResourceBase
- Object
- BaseObject
- ResourceBase
- AsposeSlidesCloud::SlideProperties
- Defined in:
- lib/aspose_slides_cloud/models/slide_properties.rb
Overview
Slide properties.
Instance Attribute Summary collapse
-
#first_slide_number ⇒ Object
First slide number.
-
#height ⇒ Object
Height.
-
#orientation ⇒ Object
Slide orientation.
-
#scale_type ⇒ Object
Scale type.
-
#size_type ⇒ Object
Size type.
-
#width ⇒ Object
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 = {}) ⇒ SlideProperties
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 = {}) ⇒ SlideProperties
Initializes the object
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 72 def initialize(attributes = {}) super if attributes.has_key?(:'FirstSlideNumber') self. = attributes[:'FirstSlideNumber'] end if attributes.has_key?(:'Orientation') self.orientation = attributes[:'Orientation'] end if attributes.has_key?(:'ScaleType') self.scale_type = attributes[:'ScaleType'] end if attributes.has_key?(:'SizeType') self.size_type = attributes[:'SizeType'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'Height') self.height = attributes[:'Height'] end end |
Instance Attribute Details
#first_slide_number ⇒ Object
First slide number.
29 30 31 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 29 def @first_slide_number end |
#height ⇒ Object
Height.
44 45 46 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 44 def height @height end |
#orientation ⇒ Object
Slide orientation.
32 33 34 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 32 def orientation @orientation end |
#scale_type ⇒ Object
Scale type.
35 36 37 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 35 def scale_type @scale_type end |
#size_type ⇒ Object
Size type.
38 39 40 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 38 def size_type @size_type end |
#width ⇒ Object
Width.
41 42 43 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 41 def width @width end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
47 48 49 50 51 52 53 54 55 56 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 47 def self.attribute_map super.merge({ :'first_slide_number' => :'FirstSlideNumber', :'orientation' => :'Orientation', :'scale_type' => :'ScaleType', :'size_type' => :'SizeType', :'width' => :'Width', :'height' => :'Height', }) end |
.swagger_types ⇒ Object
Attribute type mapping.
59 60 61 62 63 64 65 66 67 68 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 59 def self.swagger_types super.merge({ :'first_slide_number' => :'Integer', :'orientation' => :'String', :'scale_type' => :'String', :'size_type' => :'String', :'width' => :'Integer', :'height' => :'Integer', }) end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
152 153 154 155 156 157 158 159 160 161 162 163 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 152 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && == o. && orientation == o.orientation && scale_type == o.scale_type && size_type == o.size_type && width == o.width && height == o.height end |
#eql?(o) ⇒ Boolean
167 168 169 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 167 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
173 174 175 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 173 def hash [self_uri, alternate_links, , orientation, scale_type, size_type, width, height].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
102 103 104 105 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 102 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
109 110 111 112 113 114 115 116 117 118 |
# File 'lib/aspose_slides_cloud/models/slide_properties.rb', line 109 def valid? return false if !super orientation_validator = EnumAttributeValidator.new('String', ['Landscape', 'Portrait']) return false unless orientation_validator.valid?(@orientation) scale_type_validator = EnumAttributeValidator.new('String', ['DoNotScale', 'EnsureFit', 'Maximize']) return false unless scale_type_validator.valid?(@scale_type) size_type_validator = EnumAttributeValidator.new('String', ['OnScreen', 'LetterPaper', 'A4Paper', 'Slide35mm', 'Overhead', 'Banner', 'Custom', 'Ledger', 'A3Paper', 'B4IsoPaper', 'B5IsoPaper', 'B4JisPaper', 'B5JisPaper', 'HagakiCard', 'OnScreen16x9', 'OnScreen16x10', 'Widescreen']) return false unless size_type_validator.valid?(@size_type) true end |