Class: Google::Apis::DocsV1::EmbeddedObject
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::EmbeddedObject
- 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
An embedded object in the document.
Instance Attribute Summary collapse
-
#description ⇒ String
The description of the embedded object.
-
#embedded_drawing_properties ⇒ Google::Apis::DocsV1::EmbeddedDrawingProperties
The properties of an embedded drawing.
-
#embedded_object_border ⇒ Google::Apis::DocsV1::EmbeddedObjectBorder
A border around an EmbeddedObject.
-
#image_properties ⇒ Google::Apis::DocsV1::ImageProperties
The properties of an image.
-
#linked_content_reference ⇒ Google::Apis::DocsV1::LinkedContentReference
A reference to the external linked source content.
-
#margin_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#margin_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#size ⇒ Google::Apis::DocsV1::Size
A width and height.
-
#title ⇒ String
The title of the embedded object.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EmbeddedObject
constructor
A new instance of EmbeddedObject.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EmbeddedObject
Returns a new instance of EmbeddedObject
1165 1166 1167 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1165 def initialize(**args) update!(**args) end |
Instance Attribute Details
#description ⇒ String
The description of the embedded object. The title
and description
are
both combined to display alt text.
Corresponds to the JSON property description
1112 1113 1114 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1112 def description @description end |
#embedded_drawing_properties ⇒ Google::Apis::DocsV1::EmbeddedDrawingProperties
The properties of an embedded drawing.
Corresponds to the JSON property embeddedDrawingProperties
1117 1118 1119 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1117 def @embedded_drawing_properties end |
#embedded_object_border ⇒ Google::Apis::DocsV1::EmbeddedObjectBorder
A border around an EmbeddedObject.
Corresponds to the JSON property embeddedObjectBorder
1122 1123 1124 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1122 def @embedded_object_border end |
#image_properties ⇒ Google::Apis::DocsV1::ImageProperties
The properties of an image.
Corresponds to the JSON property imageProperties
1127 1128 1129 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1127 def image_properties @image_properties end |
#linked_content_reference ⇒ Google::Apis::DocsV1::LinkedContentReference
A reference to the external linked source content.
Corresponds to the JSON property linkedContentReference
1132 1133 1134 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1132 def linked_content_reference @linked_content_reference end |
#margin_bottom ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginBottom
1137 1138 1139 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1137 def margin_bottom @margin_bottom end |
#margin_left ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginLeft
1142 1143 1144 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1142 def margin_left @margin_left end |
#margin_right ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginRight
1147 1148 1149 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1147 def margin_right @margin_right end |
#margin_top ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property marginTop
1152 1153 1154 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1152 def margin_top @margin_top end |
#size ⇒ Google::Apis::DocsV1::Size
A width and height.
Corresponds to the JSON property size
1157 1158 1159 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1157 def size @size end |
#title ⇒ String
The title of the embedded object. The title
and description
are both
combined to display alt text.
Corresponds to the JSON property title
1163 1164 1165 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1163 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 |
# File 'generated/google/apis/docs_v1/classes.rb', line 1170 def update!(**args) @description = args[:description] if args.key?(:description) @embedded_drawing_properties = args[:embedded_drawing_properties] if args.key?(:embedded_drawing_properties) @embedded_object_border = args[:embedded_object_border] if args.key?(:embedded_object_border) @image_properties = args[:image_properties] if args.key?(:image_properties) @linked_content_reference = args[:linked_content_reference] if args.key?(:linked_content_reference) @margin_bottom = args[:margin_bottom] if args.key?(:margin_bottom) @margin_left = args[:margin_left] if args.key?(:margin_left) @margin_right = args[:margin_right] if args.key?(:margin_right) @margin_top = args[:margin_top] if args.key?(:margin_top) @size = args[:size] if args.key?(:size) @title = args[:title] if args.key?(:title) end |