Class: Google::Apis::DocsV1::PositionedObjectPositioning
- Inherits:
-
Object
- Object
- Google::Apis::DocsV1::PositionedObjectPositioning
- 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
The positioning of a PositionedObject. The positioned object is positioned relative to the beginning of the Paragraph it is tethered to.
Instance Attribute Summary collapse
-
#layout ⇒ String
The layout of this positioned object.
-
#left_offset ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
-
#top_offset ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PositionedObjectPositioning
constructor
A new instance of PositionedObjectPositioning.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PositionedObjectPositioning
Returns a new instance of PositionedObjectPositioning.
3740 3741 3742 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3740 def initialize(**args) update!(**args) end |
Instance Attribute Details
#layout ⇒ String
The layout of this positioned object.
Corresponds to the JSON property layout
3728 3729 3730 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3728 def layout @layout end |
#left_offset ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property leftOffset
3733 3734 3735 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3733 def left_offset @left_offset end |
#top_offset ⇒ Google::Apis::DocsV1::Dimension
A magnitude in a single direction in the specified units.
Corresponds to the JSON property topOffset
3738 3739 3740 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3738 def top_offset @top_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3745 3746 3747 3748 3749 |
# File 'generated/google/apis/docs_v1/classes.rb', line 3745 def update!(**args) @layout = args[:layout] if args.key?(:layout) @left_offset = args[:left_offset] if args.key?(:left_offset) @top_offset = args[:top_offset] if args.key?(:top_offset) end |