Class: Google::Apis::DocsV1::PositionedObjectProperties

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

Properties of a PositionedObject.

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

Returns a new instance of PositionedObjectProperties.



3804
3805
3806
# File 'generated/google/apis/docs_v1/classes.rb', line 3804

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

Instance Attribute Details

#embedded_objectGoogle::Apis::DocsV1::EmbeddedObject

An embedded object in the document. Corresponds to the JSON property embeddedObject



3795
3796
3797
# File 'generated/google/apis/docs_v1/classes.rb', line 3795

def embedded_object
  @embedded_object
end

#positioningGoogle::Apis::DocsV1::PositionedObjectPositioning

The positioning of a PositionedObject. The positioned object is positioned relative to the beginning of the Paragraph it is tethered to. Corresponds to the JSON property positioning



3802
3803
3804
# File 'generated/google/apis/docs_v1/classes.rb', line 3802

def positioning
  @positioning
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3809
3810
3811
3812
# File 'generated/google/apis/docs_v1/classes.rb', line 3809

def update!(**args)
  @embedded_object = args[:embedded_object] if args.key?(:embedded_object)
  @positioning = args[:positioning] if args.key?(:positioning)
end