Class: Google::Apis::ContentV2_1::BuiltInSimpleActionAdditionalContent

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

Overview

Long text from external source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BuiltInSimpleActionAdditionalContent

Returns a new instance of BuiltInSimpleActionAdditionalContent.



2659
2660
2661
# File 'lib/google/apis/content_v2_1/classes.rb', line 2659

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

Instance Attribute Details

#paragraphsArray<String>

Long text organized into paragraphs. Corresponds to the JSON property paragraphs

Returns:

  • (Array<String>)


2652
2653
2654
# File 'lib/google/apis/content_v2_1/classes.rb', line 2652

def paragraphs
  @paragraphs
end

#titleString

Title of the additional content; Corresponds to the JSON property title

Returns:

  • (String)


2657
2658
2659
# File 'lib/google/apis/content_v2_1/classes.rb', line 2657

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2664
2665
2666
2667
# File 'lib/google/apis/content_v2_1/classes.rb', line 2664

def update!(**args)
  @paragraphs = args[:paragraphs] if args.key?(:paragraphs)
  @title = args[:title] if args.key?(:title)
end