Class: Google::Apis::DocsV1::TableCellBorder

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 table cell. Table cell borders cannot be transparent. To hide a table cell border, make its width 0.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TableCellBorder

Returns a new instance of TableCellBorder.



5677
5678
5679
# File 'lib/google/apis/docs_v1/classes.rb', line 5677

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



5665
5666
5667
# File 'lib/google/apis/docs_v1/classes.rb', line 5665

def color
  @color
end

#dash_styleString

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

Returns:

  • (String)


5670
5671
5672
# File 'lib/google/apis/docs_v1/classes.rb', line 5670

def dash_style
  @dash_style
end

#widthGoogle::Apis::DocsV1::Dimension

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



5675
5676
5677
# File 'lib/google/apis/docs_v1/classes.rb', line 5675

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5682
5683
5684
5685
5686
# File 'lib/google/apis/docs_v1/classes.rb', line 5682

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