Class: Google::Apis::DocsV1::EmbeddedObject

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EmbeddedObject

Returns a new instance of EmbeddedObject.



1854
1855
1856
# File 'lib/google/apis/docs_v1/classes.rb', line 1854

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#descriptionString

The description of the embedded object. The title and description are both combined to display alt text. Corresponds to the JSON property description

Returns:

  • (String)


1799
1800
1801
# File 'lib/google/apis/docs_v1/classes.rb', line 1799

def description
  @description
end

#embedded_drawing_propertiesGoogle::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



1806
1807
1808
# File 'lib/google/apis/docs_v1/classes.rb', line 1806

def embedded_drawing_properties
  @embedded_drawing_properties
end

#embedded_object_borderGoogle::Apis::DocsV1::EmbeddedObjectBorder

A border around an EmbeddedObject. Corresponds to the JSON property embeddedObjectBorder



1811
1812
1813
# File 'lib/google/apis/docs_v1/classes.rb', line 1811

def embedded_object_border
  @embedded_object_border
end

#image_propertiesGoogle::Apis::DocsV1::ImageProperties

The properties of an image. Corresponds to the JSON property imageProperties



1816
1817
1818
# File 'lib/google/apis/docs_v1/classes.rb', line 1816

def image_properties
  @image_properties
end

#linked_content_referenceGoogle::Apis::DocsV1::LinkedContentReference

A reference to the external linked source content. Corresponds to the JSON property linkedContentReference



1821
1822
1823
# File 'lib/google/apis/docs_v1/classes.rb', line 1821

def linked_content_reference
  @linked_content_reference
end

#margin_bottomGoogle::Apis::DocsV1::Dimension

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



1826
1827
1828
# File 'lib/google/apis/docs_v1/classes.rb', line 1826

def margin_bottom
  @margin_bottom
end

#margin_leftGoogle::Apis::DocsV1::Dimension

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



1831
1832
1833
# File 'lib/google/apis/docs_v1/classes.rb', line 1831

def margin_left
  @margin_left
end

#margin_rightGoogle::Apis::DocsV1::Dimension

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



1836
1837
1838
# File 'lib/google/apis/docs_v1/classes.rb', line 1836

def margin_right
  @margin_right
end

#margin_topGoogle::Apis::DocsV1::Dimension

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



1841
1842
1843
# File 'lib/google/apis/docs_v1/classes.rb', line 1841

def margin_top
  @margin_top
end

#sizeGoogle::Apis::DocsV1::Size

A width and height. Corresponds to the JSON property size



1846
1847
1848
# File 'lib/google/apis/docs_v1/classes.rb', line 1846

def size
  @size
end

#titleString

The title of the embedded object. The title and description are both combined to display alt text. Corresponds to the JSON property title

Returns:

  • (String)


1852
1853
1854
# File 'lib/google/apis/docs_v1/classes.rb', line 1852

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
# File 'lib/google/apis/docs_v1/classes.rb', line 1859

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