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.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1SuggestionItem

Returns a new instance of GoogleAppsCardV1SuggestionItem.



1942
1943
1944
# File 'lib/google/apis/chat_v1/classes.rb', line 1942

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

Instance Attribute Details

#textString

The suggested autocomplete result. Corresponds to the JSON property text

Returns:

  • (String)


1940
1941
1942
# File 'lib/google/apis/chat_v1/classes.rb', line 1940

def text
  @text
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1947
1948
1949
# File 'lib/google/apis/chat_v1/classes.rb', line 1947

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