Class: Google::Apis::SlidesV1::LineConnection

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

The properties for one end of a Line connection.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LineConnection

Returns a new instance of LineConnection.



1545
1546
1547
# File 'generated/google/apis/slides_v1/classes.rb', line 1545

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#connected_object_idString

The object ID of the connected page element. Some page elements, such as groups, tables, and lines do not have connection sites and therefore cannot be connected to a connector line. Corresponds to the JSON property connectedObjectId

Returns:

  • (String)


1530
1531
1532
# File 'generated/google/apis/slides_v1/classes.rb', line 1530

def connected_object_id
  @connected_object_id
end

#connection_site_indexFixnum

The index of the connection site on the connected page element. In most cases, it corresponds to the predefined connection site index from the ECMA-376 standard. More information on those connection sites can be found in the description of the "cnx" attribute in section 20.1.9.9 and Annex H. " Predefined DrawingML Shape and Text Geometries" of "Office Open XML File Formats-Fundamentals and Markup Language Reference", part 1 of ECMA-376 5th edition. The position of each connection site can also be viewed from Slides editor. Corresponds to the JSON property connectionSiteIndex

Returns:

  • (Fixnum)


1543
1544
1545
# File 'generated/google/apis/slides_v1/classes.rb', line 1543

def connection_site_index
  @connection_site_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1550
1551
1552
1553
# File 'generated/google/apis/slides_v1/classes.rb', line 1550

def update!(**args)
  @connected_object_id = args[:connected_object_id] if args.key?(:connected_object_id)
  @connection_site_index = args[:connection_site_index] if args.key?(:connection_site_index)
end