Class: Google::Apis::SlidesV1::LineProperties

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

Overview

The properties of the Line. When unset, these fields default to values that match the appearance of new lines created in the Slides editor.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LineProperties

Returns a new instance of LineProperties.



1678
1679
1680
# File 'lib/google/apis/slides_v1/classes.rb', line 1678

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

Instance Attribute Details

#dash_styleString

The dash style of the line. Corresponds to the JSON property dashStyle

Returns:

  • (String)


1641
1642
1643
# File 'lib/google/apis/slides_v1/classes.rb', line 1641

def dash_style
  @dash_style
end

#end_arrowString

The style of the arrow at the end of the line. Corresponds to the JSON property endArrow

Returns:

  • (String)


1646
1647
1648
# File 'lib/google/apis/slides_v1/classes.rb', line 1646

def end_arrow
  @end_arrow
end

#end_connectionGoogle::Apis::SlidesV1::LineConnection

The properties for one end of a Line connection. Corresponds to the JSON property endConnection



1651
1652
1653
# File 'lib/google/apis/slides_v1/classes.rb', line 1651

def end_connection
  @end_connection
end

#line_fillGoogle::Apis::SlidesV1::LineFill

The fill of the line. Corresponds to the JSON property lineFill



1656
1657
1658
# File 'lib/google/apis/slides_v1/classes.rb', line 1656

def line_fill
  @line_fill
end

A hypertext link. Corresponds to the JSON property link



1661
1662
1663
# File 'lib/google/apis/slides_v1/classes.rb', line 1661

def link
  @link
end

#start_arrowString

The style of the arrow at the beginning of the line. Corresponds to the JSON property startArrow

Returns:

  • (String)


1666
1667
1668
# File 'lib/google/apis/slides_v1/classes.rb', line 1666

def start_arrow
  @start_arrow
end

#start_connectionGoogle::Apis::SlidesV1::LineConnection

The properties for one end of a Line connection. Corresponds to the JSON property startConnection



1671
1672
1673
# File 'lib/google/apis/slides_v1/classes.rb', line 1671

def start_connection
  @start_connection
end

#weightGoogle::Apis::SlidesV1::Dimension

A magnitude in a single direction in the specified units. Corresponds to the JSON property weight



1676
1677
1678
# File 'lib/google/apis/slides_v1/classes.rb', line 1676

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
# File 'lib/google/apis/slides_v1/classes.rb', line 1683

def update!(**args)
  @dash_style = args[:dash_style] if args.key?(:dash_style)
  @end_arrow = args[:end_arrow] if args.key?(:end_arrow)
  @end_connection = args[:end_connection] if args.key?(:end_connection)
  @line_fill = args[:line_fill] if args.key?(:line_fill)
  @link = args[:link] if args.key?(:link)
  @start_arrow = args[:start_arrow] if args.key?(:start_arrow)
  @start_connection = args[:start_connection] if args.key?(:start_connection)
  @weight = args[:weight] if args.key?(:weight)
end