class Google::Apis::DocsV1::EmbeddedObject

An embedded object in the document.

Attributes

description[RW]

The description of the embedded object. The `title` and `description` are both combined to display alt text. Corresponds to the JSON property `description` @return [String]

embedded_drawing_properties[RW]

The properties of an embedded drawing. Corresponds to the JSON property `embeddedDrawingProperties` @return [Google::Apis::DocsV1::EmbeddedDrawingProperties]

embedded_object_border[RW]

A border around an EmbeddedObject. Corresponds to the JSON property `embeddedObjectBorder` @return [Google::Apis::DocsV1::EmbeddedObjectBorder]

image_properties[RW]

The properties of an image. Corresponds to the JSON property `imageProperties` @return [Google::Apis::DocsV1::ImageProperties]

linked_content_reference[RW]

A reference to the external linked source content. Corresponds to the JSON property `linkedContentReference` @return [Google::Apis::DocsV1::LinkedContentReference]

margin_bottom[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginBottom` @return [Google::Apis::DocsV1::Dimension]

margin_left[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginLeft` @return [Google::Apis::DocsV1::Dimension]

margin_right[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginRight` @return [Google::Apis::DocsV1::Dimension]

margin_top[RW]

A magnitude in a single direction in the specified units. Corresponds to the JSON property `marginTop` @return [Google::Apis::DocsV1::Dimension]

size[RW]

A width and height. Corresponds to the JSON property `size` @return [Google::Apis::DocsV1::Size]

title[RW]

The title of the embedded object. The `title` and `description` are both combined to display alt text. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/docs_v1/classes.rb, line 1364
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/docs_v1/classes.rb, line 1369
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