class Google::Apis::ChatV1::Card
A card is a UI element that can contain UI widgets such as texts, images.
Attributes
card_actions[RW]
The actions of this card. Corresponds to the JSON property `cardActions` @return [Array<Google::Apis::ChatV1::CardAction>]
header[RW]
The header of the card. A header usually contains a title and an image. Corresponds to the JSON property `header` @return [Google::Apis::ChatV1::CardHeader]
name[RW]
Name of the card. Corresponds to the JSON property `name` @return [String]
sections[RW]
Sections are separated by a line divider. Corresponds to the JSON property `sections` @return [Array<Google::Apis::ChatV1::Section>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 300 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 305 def update!(**args) @card_actions = args[:card_actions] if args.key?(:card_actions) @header = args[:header] if args.key?(:header) @name = args[:name] if args.key?(:name) @sections = args[:sections] if args.key?(:sections) end