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

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

An embedded object in the document.

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

Returns a new instance of EmbeddedObject.



1420
1421
1422
# File 'generated/google/apis/docs_v1/classes.rb', line 1420

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)


1367
1368
1369
# File 'generated/google/apis/docs_v1/classes.rb', line 1367

def description
  @description
end

#embedded_drawing_propertiesGoogle::Apis::DocsV1::EmbeddedDrawingProperties

The properties of an embedded drawing. Corresponds to the JSON property embeddedDrawingProperties



1372
1373
1374
# File 'generated/google/apis/docs_v1/classes.rb', line 1372

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



1377
1378
1379
# File 'generated/google/apis/docs_v1/classes.rb', line 1377

def embedded_object_border
  @embedded_object_border
end

#image_propertiesGoogle::Apis::DocsV1::ImageProperties

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



1382
1383
1384
# File 'generated/google/apis/docs_v1/classes.rb', line 1382

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



1387
1388
1389
# File 'generated/google/apis/docs_v1/classes.rb', line 1387

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



1392
1393
1394
# File 'generated/google/apis/docs_v1/classes.rb', line 1392

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



1397
1398
1399
# File 'generated/google/apis/docs_v1/classes.rb', line 1397

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



1402
1403
1404
# File 'generated/google/apis/docs_v1/classes.rb', line 1402

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



1407
1408
1409
# File 'generated/google/apis/docs_v1/classes.rb', line 1407

def margin_top
  @margin_top
end

#sizeGoogle::Apis::DocsV1::Size

A width and height. Corresponds to the JSON property size



1412
1413
1414
# File 'generated/google/apis/docs_v1/classes.rb', line 1412

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)


1418
1419
1420
# File 'generated/google/apis/docs_v1/classes.rb', line 1418

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
# File 'generated/google/apis/docs_v1/classes.rb', line 1425

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