Class: Google::Apis::SlidesV1::Placeholder

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

Overview

The placeholder information that uniquely identifies a placeholder shape.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Placeholder

Returns a new instance of Placeholder.



2395
2396
2397
# File 'lib/google/apis/slides_v1/classes.rb', line 2395

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

Instance Attribute Details

#indexFixnum

The index of the placeholder. If the same placeholder types are present in the same page, they would have different index values. Corresponds to the JSON property index

Returns:

  • (Fixnum)


2381
2382
2383
# File 'lib/google/apis/slides_v1/classes.rb', line 2381

def index
  @index
end

#parent_object_idString

The object ID of this shape's parent placeholder. If unset, the parent placeholder shape does not exist, so the shape does not inherit properties from any other shape. Corresponds to the JSON property parentObjectId

Returns:

  • (String)


2388
2389
2390
# File 'lib/google/apis/slides_v1/classes.rb', line 2388

def parent_object_id
  @parent_object_id
end

#typeString

The type of the placeholder. Corresponds to the JSON property type

Returns:

  • (String)


2393
2394
2395
# File 'lib/google/apis/slides_v1/classes.rb', line 2393

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2400
2401
2402
2403
2404
# File 'lib/google/apis/slides_v1/classes.rb', line 2400

def update!(**args)
  @index = args[:index] if args.key?(:index)
  @parent_object_id = args[:parent_object_id] if args.key?(:parent_object_id)
  @type = args[:type] if args.key?(:type)
end