Class: Google::Apis::DocsV1::EmbeddedObject
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::EmbeddedObject
- 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
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 and used to differentiate the object type.
-
#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.
Constructor Details
#initialize(**args) ⇒ EmbeddedObject
Returns a new instance of EmbeddedObject.
1796 1797 1798 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1796 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
1741 1742 1743 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1741 def description @description end |
#embedded_drawing_properties ⇒ Google::Apis::DocsV1::EmbeddedDrawingProperties
The properties of an embedded drawing and used to differentiate the object
type. An embedded drawing is one that's created and edited within a document.
Note that extensive details are not supported.
Corresponds to the JSON property embeddedDrawingProperties
1748 1749 1750 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1748 def end |
#embedded_object_border ⇒ Google::Apis::DocsV1::EmbeddedObjectBorder
A border around an EmbeddedObject.
Corresponds to the JSON property embeddedObjectBorder
1753 1754 1755 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1753 def end |
#image_properties ⇒ Google::Apis::DocsV1::ImageProperties
The properties of an image.
Corresponds to the JSON property imageProperties
1758 1759 1760 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1758 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
1763 1764 1765 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1763 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
1768 1769 1770 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1768 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
1773 1774 1775 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1773 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
1778 1779 1780 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1778 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
1783 1784 1785 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1783 def margin_top @margin_top end |
#size ⇒ Google::Apis::DocsV1::Size
A width and height.
Corresponds to the JSON property size
1788 1789 1790 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1788 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
1794 1795 1796 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1794 def title @title end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 |
# File 'lib/google/apis/docs_v1/classes.rb', line 1801 def update!(**args) @description = args[:description] if args.key?(:description) = args[:embedded_drawing_properties] if args.key?(:embedded_drawing_properties) = 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 |