class AsposeSlidesCloud::Connector
Represents Connector
resource.
Attributes
End shape link.
End shape index.
Start shape link.
Start shape index.
Public Class Methods
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 41 def self.attribute_map super.merge({ :'start_shape_connected_to' => :'StartShapeConnectedTo', :'start_shape_connected_to_index' => :'StartShapeConnectedToIndex', :'end_shape_connected_to' => :'EndShapeConnectedTo', :'end_shape_connected_to_index' => :'EndShapeConnectedToIndex', }) end
Attribute mapping from ruby-style variable name to JSON key.
Calls superclass method
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 62 def initialize(attributes = {}) super if attributes.has_key?(:'StartShapeConnectedTo') self.start_shape_connected_to = attributes[:'StartShapeConnectedTo'] end if attributes.has_key?(:'StartShapeConnectedToIndex') self.start_shape_connected_to_index = attributes[:'StartShapeConnectedToIndex'] end if attributes.has_key?(:'EndShapeConnectedTo') self.end_shape_connected_to = attributes[:'EndShapeConnectedTo'] end if attributes.has_key?(:'EndShapeConnectedToIndex') self.end_shape_connected_to_index = attributes[:'EndShapeConnectedToIndex'] end self.type = 'Connector' end
Initializes the object @param [Hash] attributes Model attributes in the form of hash
Calls superclass method
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 51 def self.swagger_types super.merge({ :'start_shape_connected_to' => :'ResourceUri', :'start_shape_connected_to_index' => :'Integer', :'end_shape_connected_to' => :'ResourceUri', :'end_shape_connected_to_index' => :'Integer', }) end
Attribute type mapping.
Calls superclass method
Public Instance Methods
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 99 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 && shape_type == o.shape_type && start_shape_connected_to == o.start_shape_connected_to && start_shape_connected_to_index == o.start_shape_connected_to_index && end_shape_connected_to == o.end_shape_connected_to && end_shape_connected_to_index == o.end_shape_connected_to_index end
Checks equality by comparing each attribute. @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 130 def eql?(o) self == o end
@see the ‘==` method @param [Object] Object to be compared
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 136 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, shape_type, start_shape_connected_to, start_shape_connected_to_index, end_shape_connected_to, end_shape_connected_to_index].hash end
Calculates hash code according to all attributes. @return [Fixnum] Hash code
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 85 def list_invalid_properties invalid_properties = super invalid_properties end
Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons
Calls superclass method
Source
# File lib/aspose_slides_cloud/models/connector.rb, line 92 def valid? return false if !super true end
Check to see if the all the properties in the model are valid @return true if the model is valid
Calls superclass method