Class: Google::Apis::ChatV1::TextParagraph

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

Overview

A paragraph of text. Formatted text supported.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TextParagraph

Returns a new instance of TextParagraph.



866
867
868
# File 'generated/google/apis/chat_v1/classes.rb', line 866

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

Instance Attribute Details

#textString

Corresponds to the JSON property text

Returns:

  • (String)


864
865
866
# File 'generated/google/apis/chat_v1/classes.rb', line 864

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



871
872
873
# File 'generated/google/apis/chat_v1/classes.rb', line 871

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