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.



2707
2708
2709
# File 'lib/google/apis/content_v2_1/classes.rb', line 2707

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


2700
2701
2702
# File 'lib/google/apis/content_v2_1/classes.rb', line 2700

def paragraphs
  @paragraphs
end

#titleString

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

Returns:

  • (String)


2705
2706
2707
# File 'lib/google/apis/content_v2_1/classes.rb', line 2705

def title
  @title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2712
2713
2714
2715
# File 'lib/google/apis/content_v2_1/classes.rb', line 2712

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