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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LineConnection

Returns a new instance of LineConnection



1627
1628
1629
# File 'generated/google/apis/slides_v1/classes.rb', line 1627

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)


1612
1613
1614
# File 'generated/google/apis/slides_v1/classes.rb', line 1612

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)


1625
1626
1627
# File 'generated/google/apis/slides_v1/classes.rb', line 1625

def connection_site_index
  @connection_site_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1632
1633
1634
1635
# File 'generated/google/apis/slides_v1/classes.rb', line 1632

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