Class: Google::Apis::DocsV1::ParagraphBorder
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::ParagraphBorder
- 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 more...
Overview
A border around a paragraph.
Instance Attribute Summary collapse
-
#color ⇒ Google::Apis::DocsV1::OptionalColor
A color that can either be fully opaque or fully transparent.
-
#dash_style ⇒ String
The dash style of the border.
-
#padding ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#width ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ParagraphBorder
constructor
A new instance of ParagraphBorder.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ ParagraphBorder
Returns a new instance of ParagraphBorder
2855 2856 2857 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2855 def initialize(**args) update!(**args) end |
Instance Attribute Details
#color ⇒ Google::Apis::DocsV1::OptionalColor
A color that can either be fully opaque or fully transparent.
Corresponds to the JSON property color
2838 2839 2840 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2838 def color @color end |
#dash_style ⇒ String
The dash style of the border.
Corresponds to the JSON property dashStyle
2843 2844 2845 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2843 def dash_style @dash_style end |
#padding ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property padding
2848 2849 2850 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2848 def padding @padding end |
#width ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property width
2853 2854 2855 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2853 def width @width end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2860 2861 2862 2863 2864 2865 |
# File 'generated/google/apis/docs_v1/classes.rb', line 2860 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 |