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

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

Overview

A border around a paragraph.

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) ⇒ ParagraphBorder

Returns a new instance of ParagraphBorder.



3245
3246
3247
# File 'generated/google/apis/docs_v1/classes.rb', line 3245

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



3228
3229
3230
# File 'generated/google/apis/docs_v1/classes.rb', line 3228

def color
  @color
end

#dash_styleString

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

Returns:

  • (String)


3233
3234
3235
# File 'generated/google/apis/docs_v1/classes.rb', line 3233

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



3238
3239
3240
# File 'generated/google/apis/docs_v1/classes.rb', line 3238

def padding
  @padding
end

#widthGoogle::Apis::DocsV1::Dimension

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



3243
3244
3245
# File 'generated/google/apis/docs_v1/classes.rb', line 3243

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3250
3251
3252
3253
3254
3255
# File 'generated/google/apis/docs_v1/classes.rb', line 3250

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