Class: Google::Apis::ChatV1::GoogleAppsCardV1Suggestions

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 container wrapping elements necessary for showing suggestion items used in text input autocomplete.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Suggestions

Returns a new instance of GoogleAppsCardV1Suggestions.



1982
1983
1984
# File 'lib/google/apis/chat_v1/classes.rb', line 1982

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

Instance Attribute Details

#itemsArray<Google::Apis::ChatV1::GoogleAppsCardV1SuggestionItem>

A list of suggestions used for autocomplete recommendations. Corresponds to the JSON property items



1980
1981
1982
# File 'lib/google/apis/chat_v1/classes.rb', line 1980

def items
  @items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1987
1988
1989
# File 'lib/google/apis/chat_v1/classes.rb', line 1987

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