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



4299
4300
4301
# File 'generated/google/apis/slides_v1/classes.rb', line 4299

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)


4287
4288
4289
# File 'generated/google/apis/slides_v1/classes.rb', line 4287

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)


4292
4293
4294
# File 'generated/google/apis/slides_v1/classes.rb', line 4292

def end_arrow
  @end_arrow
end

#line_fillGoogle::Apis::SlidesV1::LineFill

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



4277
4278
4279
# File 'generated/google/apis/slides_v1/classes.rb', line 4277

def line_fill
  @line_fill
end

A hypertext link. Corresponds to the JSON property link



4282
4283
4284
# File 'generated/google/apis/slides_v1/classes.rb', line 4282

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)


4297
4298
4299
# File 'generated/google/apis/slides_v1/classes.rb', line 4297

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



4272
4273
4274
# File 'generated/google/apis/slides_v1/classes.rb', line 4272

def weight
  @weight
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4304
4305
4306
4307
4308
4309
4310
4311
# File 'generated/google/apis/slides_v1/classes.rb', line 4304

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