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

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

The placeholder information that uniquely identifies a placeholder shape.

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

Returns a new instance of Placeholder



601
602
603
# File 'generated/google/apis/slides_v1/classes.rb', line 601

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

Instance Attribute Details

#indexFixnum

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

Returns:

  • (Fixnum)


599
600
601
# File 'generated/google/apis/slides_v1/classes.rb', line 599

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)


593
594
595
# File 'generated/google/apis/slides_v1/classes.rb', line 593

def parent_object_id
  @parent_object_id
end

#typeString

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

Returns:

  • (String)


586
587
588
# File 'generated/google/apis/slides_v1/classes.rb', line 586

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



606
607
608
609
610
# File 'generated/google/apis/slides_v1/classes.rb', line 606

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