Class: Google::Apis::DocsV1::ParagraphBorder

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

Overview

A border around a paragraph.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ParagraphBorder

Returns a new instance of ParagraphBorder.



3395
3396
3397
# File 'lib/google/apis/docs_v1/classes.rb', line 3395

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

Instance Attribute Details

#colorGoogle::Apis::DocsV1::OptionalColor

A color that can either be fully opaque or fully transparent. Corresponds to the JSON property color



3378
3379
3380
# File 'lib/google/apis/docs_v1/classes.rb', line 3378

def color
  @color
end

#dash_styleString

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

Returns:

  • (String)


3383
3384
3385
# File 'lib/google/apis/docs_v1/classes.rb', line 3383

def dash_style
  @dash_style
end

#paddingGoogle::Apis::DocsV1::Dimension

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



3388
3389
3390
# File 'lib/google/apis/docs_v1/classes.rb', line 3388

def padding
  @padding
end

#widthGoogle::Apis::DocsV1::Dimension

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



3393
3394
3395
# File 'lib/google/apis/docs_v1/classes.rb', line 3393

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3400
3401
3402
3403
3404
3405
# File 'lib/google/apis/docs_v1/classes.rb', line 3400

def update!(**args)
  @color = args[:color] if args.key?(:color)
  @dash_style = args[:dash_style] if args.key?(:dash_style)
  @padding = args[:padding] if args.key?(:padding)
  @width = args[:width] if args.key?(:width)
end