Class: Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem

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

Overview

A suggestion item. Only supports text for now.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1SuggestionItem

Returns a new instance of GoogleAppsCardV1SuggestionItem.



1846
1847
1848
# File 'lib/google/apis/chat_v1/classes.rb', line 1846

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

Instance Attribute Details

#textString

Corresponds to the JSON property text

Returns:

  • (String)


1844
1845
1846
# File 'lib/google/apis/chat_v1/classes.rb', line 1844

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1851
1852
1853
# File 'lib/google/apis/chat_v1/classes.rb', line 1851

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