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

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

The positioning of a PositionedObject. The positioned object is positioned relative to the beginning of the Paragraph it's tethered to.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PositionedObjectPositioning

Returns a new instance of PositionedObjectPositioning.



4308
4309
4310
# File 'lib/google/apis/docs_v1/classes.rb', line 4308

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

Instance Attribute Details

#layoutString

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

Returns:

  • (String)


4296
4297
4298
# File 'lib/google/apis/docs_v1/classes.rb', line 4296

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



4301
4302
4303
# File 'lib/google/apis/docs_v1/classes.rb', line 4301

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



4306
4307
4308
# File 'lib/google/apis/docs_v1/classes.rb', line 4306

def top_offset
  @top_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4313
4314
4315
4316
4317
# File 'lib/google/apis/docs_v1/classes.rb', line 4313

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