Class: Google::Apis::DocsV1::PositionedObjectPositioning

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PositionedObjectPositioning

Returns a new instance of PositionedObjectPositioning.



3762
3763
3764
# File 'generated/google/apis/docs_v1/classes.rb', line 3762

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

Instance Attribute Details

#layoutString

The layout of this positioned object. Corresponds to the JSON property layout

Returns:

  • (String)


3750
3751
3752
# File 'generated/google/apis/docs_v1/classes.rb', line 3750

def layout
  @layout
end

#left_offsetGoogle::Apis::DocsV1::Dimension

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



3755
3756
3757
# File 'generated/google/apis/docs_v1/classes.rb', line 3755

def left_offset
  @left_offset
end

#top_offsetGoogle::Apis::DocsV1::Dimension

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



3760
3761
3762
# File 'generated/google/apis/docs_v1/classes.rb', line 3760

def top_offset
  @top_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3767
3768
3769
3770
3771
# File 'generated/google/apis/docs_v1/classes.rb', line 3767

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