Class: Google::Apis::DocsV1::EmbeddedObjectBorder

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 an EmbeddedObject.

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

Returns a new instance of EmbeddedObjectBorder



1210
1211
1212
# File 'generated/google/apis/docs_v1/classes.rb', line 1210

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



1193
1194
1195
# File 'generated/google/apis/docs_v1/classes.rb', line 1193

def color
  @color
end

#dash_styleString

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

Returns:

  • (String)


1198
1199
1200
# File 'generated/google/apis/docs_v1/classes.rb', line 1198

def dash_style
  @dash_style
end

#property_stateString

The property state of the border property. Corresponds to the JSON property propertyState

Returns:

  • (String)


1203
1204
1205
# File 'generated/google/apis/docs_v1/classes.rb', line 1203

def property_state
  @property_state
end

#widthGoogle::Apis::DocsV1::Dimension

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



1208
1209
1210
# File 'generated/google/apis/docs_v1/classes.rb', line 1208

def width
  @width
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1215
1216
1217
1218
1219
1220
# File 'generated/google/apis/docs_v1/classes.rb', line 1215

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