Class: Google::Apis::SlidesV1::Shape

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/slides_v1/classes.rb,
generated/google/apis/slides_v1/representations.rb,
generated/google/apis/slides_v1/representations.rb

Overview

A PageElement kind representing a generic shape that does not have a more specific classification.

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

Returns a new instance of Shape



200
201
202
# File 'generated/google/apis/slides_v1/classes.rb', line 200

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

Instance Attribute Details

#placeholderGoogle::Apis::SlidesV1::Placeholder

The placeholder information that uniquely identifies a placeholder shape. Corresponds to the JSON property placeholder



188
189
190
# File 'generated/google/apis/slides_v1/classes.rb', line 188

def placeholder
  @placeholder
end

#shape_propertiesGoogle::Apis::SlidesV1::ShapeProperties

The properties of a Shape. If the shape is a placeholder shape as determined by the placeholder field, then these properties may be inherited from a parent placeholder shape. Determining the rendered value of the property depends on the corresponding property_state field value. Corresponds to the JSON property shapeProperties



198
199
200
# File 'generated/google/apis/slides_v1/classes.rb', line 198

def shape_properties
  @shape_properties
end

#shape_typeString

The type of the shape. Corresponds to the JSON property shapeType

Returns:

  • (String)


177
178
179
# File 'generated/google/apis/slides_v1/classes.rb', line 177

def shape_type
  @shape_type
end

#textGoogle::Apis::SlidesV1::TextContent

The general text content. The text must reside in a compatible shape (e.g. text box or rectangle) or a table cell in a page. Corresponds to the JSON property text



183
184
185
# File 'generated/google/apis/slides_v1/classes.rb', line 183

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



205
206
207
208
209
210
# File 'generated/google/apis/slides_v1/classes.rb', line 205

def update!(**args)
  @shape_type = args[:shape_type] if args.key?(:shape_type)
  @text = args[:text] if args.key?(:text)
  @placeholder = args[:placeholder] if args.key?(:placeholder)
  @shape_properties = args[:shape_properties] if args.key?(:shape_properties)
end