class Google::Apis::ChatV1::GoogleAppsCardV1GridItem

Represents a single item in the grid layout.

Attributes

id[RW]

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]

image[RW]

The image that displays in the grid item. Corresponds to the JSON property `image` @return [Google::Apis::ChatV1::GoogleAppsCardV1ImageComponent]

layout[RW]

The layout to use for the grid item. Corresponds to the JSON property `layout` @return [String]

subtitle[RW]

The grid item's subtitle. Corresponds to the JSON property `subtitle` @return [String]

text_alignment[RW]

The horizontal alignment of the grid item's text. Corresponds to the JSON property `textAlignment` @return [String]

title[RW]

The grid item's title. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1478
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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