class Google::Apis::ChatV1::GoogleAppsCardV1GridItem
Represents a single item in the grid layout.
Attributes
A user-specified identifier for this grid item. This identifier is returned in the parent Grid's onClick callback parameters. Corresponds to the JSON property `id` @return [String]
The image that displays in the grid item. Corresponds to the JSON property `image` @return [Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent]
The layout to use for the grid item. Corresponds to the JSON property `layout` @return [String]
The grid item's subtitle. Corresponds to the JSON property `subtitle` @return [String]
The horizontal alignment of the grid item's text. Corresponds to the JSON property `textAlignment` @return [String]
The grid item's title. Corresponds to the JSON property `title` @return [String]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 1478 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1483 def update!(**args) @id = args[:id] if args.key?(:id) @image = args[:image] if args.key?(:image) @layout = args[:layout] if args.key?(:layout) @subtitle = args[:subtitle] if args.key?(:subtitle) @text_alignment = args[:text_alignment] if args.key?(:text_alignment) @title = args[:title] if args.key?(:title) end