class AsposeSlidesCloud::ShapeBase
Slide
shape.
Attributes
Gets or sets the alternative text.
The title of alternative text associated with the shape.
Gets or sets the effect format.
Gets or sets the fill format.
Gets or sets the height.
Hyperlink
defined for mouse click.
Hyperlink
defined for mouse over.
Gets or sets ‘Mark as decorative’ option.
Gets or sets the line format.
Gets or sets the name.
Gets or sets the 3D format
Gets or sets the width.
Gets or sets the X
Gets or sets the Y.
Gets z-order position of shape
Public Class Methods
Attribute mapping from ruby-style variable name to JSON key.
AsposeSlidesCloud::ResourceBase::attribute_map
# File lib/aspose_slides_cloud/models/shape_base.rb, line 79 def self.attribute_map super.merge({ :'name' => :'Name', :'width' => :'Width', :'height' => :'Height', :'alternative_text' => :'AlternativeText', :'alternative_text_title' => :'AlternativeTextTitle', :'hidden' => :'Hidden', :'is_decorative' => :'IsDecorative', :'x' => :'X', :'y' => :'Y', :'z_order_position' => :'ZOrderPosition', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'three_d_format' => :'ThreeDFormat', :'line_format' => :'LineFormat', :'hyperlink_click' => :'HyperlinkClick', :'hyperlink_mouse_over' => :'HyperlinkMouseOver', :'type' => :'Type', }) end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
AsposeSlidesCloud::ResourceBase::new
# File lib/aspose_slides_cloud/models/shape_base.rb, line 126 def initialize(attributes = {}) super if attributes.has_key?(:'Name') self.name = attributes[:'Name'] end if attributes.has_key?(:'Width') self.width = attributes[:'Width'] end if attributes.has_key?(:'Height') self.height = attributes[:'Height'] end if attributes.has_key?(:'AlternativeText') self.alternative_text = attributes[:'AlternativeText'] end if attributes.has_key?(:'AlternativeTextTitle') self.alternative_text_title = attributes[:'AlternativeTextTitle'] end if attributes.has_key?(:'Hidden') self.hidden = attributes[:'Hidden'] end if attributes.has_key?(:'IsDecorative') self.is_decorative = attributes[:'IsDecorative'] end if attributes.has_key?(:'X') self.x = attributes[:'X'] end if attributes.has_key?(:'Y') self.y = attributes[:'Y'] end if attributes.has_key?(:'ZOrderPosition') self.z_order_position = attributes[:'ZOrderPosition'] end if attributes.has_key?(:'FillFormat') self.fill_format = attributes[:'FillFormat'] end if attributes.has_key?(:'EffectFormat') self.effect_format = attributes[:'EffectFormat'] end if attributes.has_key?(:'ThreeDFormat') self.three_d_format = attributes[:'ThreeDFormat'] end if attributes.has_key?(:'LineFormat') self.line_format = attributes[:'LineFormat'] end if attributes.has_key?(:'HyperlinkClick') self.hyperlink_click = attributes[:'HyperlinkClick'] end if attributes.has_key?(:'HyperlinkMouseOver') self.hyperlink_mouse_over = attributes[:'HyperlinkMouseOver'] end if attributes.has_key?(:'Type') self.type = attributes[:'Type'] end end
Attribute type mapping.
AsposeSlidesCloud::ResourceBase::swagger_types
# File lib/aspose_slides_cloud/models/shape_base.rb, line 102 def self.swagger_types super.merge({ :'name' => :'String', :'width' => :'Float', :'height' => :'Float', :'alternative_text' => :'String', :'alternative_text_title' => :'String', :'hidden' => :'BOOLEAN', :'is_decorative' => :'BOOLEAN', :'x' => :'Float', :'y' => :'Float', :'z_order_position' => :'Integer', :'fill_format' => :'FillFormat', :'effect_format' => :'EffectFormat', :'three_d_format' => :'ThreeDFormat', :'line_format' => :'LineFormat', :'hyperlink_click' => :'Hyperlink', :'hyperlink_mouse_over' => :'Hyperlink', :'type' => :'String', }) end
Public Instance Methods
Checks equality by comparing each attribute. @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/shape_base.rb, line 226 def ==(o) return true if self.equal?(o) self.class == o.class && self_uri == o.self_uri && alternate_links == o.alternate_links && name == o.name && width == o.width && height == o.height && alternative_text == o.alternative_text && alternative_text_title == o.alternative_text_title && hidden == o.hidden && is_decorative == o.is_decorative && x == o.x && y == o.y && z_order_position == o.z_order_position && fill_format == o.fill_format && effect_format == o.effect_format && three_d_format == o.three_d_format && line_format == o.line_format && hyperlink_click == o.hyperlink_click && hyperlink_mouse_over == o.hyperlink_mouse_over && type == o.type end
@see the ‘==` method @param [Object] Object to be compared
# File lib/aspose_slides_cloud/models/shape_base.rb, line 252 def eql?(o) self == o end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
# File lib/aspose_slides_cloud/models/shape_base.rb, line 258 def hash [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, is_decorative, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type].hash end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
AsposeSlidesCloud::ResourceBase#list_invalid_properties
# File lib/aspose_slides_cloud/models/shape_base.rb, line 200 def list_invalid_properties invalid_properties = super invalid_properties end
Custom attribute writer method checking allowed values (enum). @param [Object] type Object to be assigned
# File lib/aspose_slides_cloud/models/shape_base.rb, line 216 def type=(type) validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape', 'ZoomFrame', 'SectionZoomFrame', 'SummaryZoomFrame', 'SummaryZoomSection']) unless validator.valid?(type) fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.' end @type = type end
Check to see if the all the properties in the model are valid @return true if the model is valid
AsposeSlidesCloud::ResourceBase#valid?
# File lib/aspose_slides_cloud/models/shape_base.rb, line 207 def valid? return false if !super type_validator = EnumAttributeValidator.new('String', ['Shape', 'Chart', 'Table', 'PictureFrame', 'VideoFrame', 'AudioFrame', 'SmartArt', 'OleObjectFrame', 'GroupShape', 'GraphicalObject', 'Connector', 'SmartArtShape', 'ZoomFrame', 'SectionZoomFrame', 'SummaryZoomFrame', 'SummaryZoomSection']) return false unless type_validator.valid?(@type) true end