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

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 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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ LineProperties

Returns a new instance of LineProperties



3387
3388
3389
# File 'generated/google/apis/slides_v1/classes.rb', line 3387

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)


3365
3366
3367
# File 'generated/google/apis/slides_v1/classes.rb', line 3365

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)


3375
3376
3377
# File 'generated/google/apis/slides_v1/classes.rb', line 3375

def end_arrow
  @end_arrow
end

#line_fillGoogle::Apis::SlidesV1::LineFill

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



3385
3386
3387
# File 'generated/google/apis/slides_v1/classes.rb', line 3385

def line_fill
  @line_fill
end

A hypertext link. Corresponds to the JSON property link



3360
3361
3362
# File 'generated/google/apis/slides_v1/classes.rb', line 3360

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)


3370
3371
3372
# File 'generated/google/apis/slides_v1/classes.rb', line 3370

def start_arrow
  @start_arrow
end

#weightGoogle::Apis::SlidesV1::Dimension

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



3380
3381
3382
# File 'generated/google/apis/slides_v1/classes.rb', line 3380

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3392
3393
3394
3395
3396
3397
3398
3399
# File 'generated/google/apis/slides_v1/classes.rb', line 3392

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