Class: Google::Apis::ChatV1::Card
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Card
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
generated/google/apis/chat_v1/representations.rb,
generated/google/apis/chat_v1/representations.rb
Overview
A card is a UI element that can contain UI widgets such as texts, images.
Instance Attribute Summary collapse
-
#card_actions ⇒ Array<Google::Apis::ChatV1::CardAction>
The actions of this card.
-
#header ⇒ Google::Apis::ChatV1::CardHeader
The header of the card.
-
#name ⇒ String
Name of the card.
-
#sections ⇒ Array<Google::Apis::ChatV1::Section>
Sections are separated by a line divider.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Card
constructor
A new instance of Card.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Card
Returns a new instance of Card
187 188 189 |
# File 'generated/google/apis/chat_v1/classes.rb', line 187 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_actions ⇒ Array<Google::Apis::ChatV1::CardAction>
The actions of this card.
Corresponds to the JSON property cardActions
170 171 172 |
# File 'generated/google/apis/chat_v1/classes.rb', line 170 def card_actions @card_actions end |
#header ⇒ Google::Apis::ChatV1::CardHeader
The header of the card. A header usually contains a title and an image.
Corresponds to the JSON property header
175 176 177 |
# File 'generated/google/apis/chat_v1/classes.rb', line 175 def header @header end |
#name ⇒ String
Name of the card.
Corresponds to the JSON property name
180 181 182 |
# File 'generated/google/apis/chat_v1/classes.rb', line 180 def name @name end |
#sections ⇒ Array<Google::Apis::ChatV1::Section>
Sections are separated by a line divider.
Corresponds to the JSON property sections
185 186 187 |
# File 'generated/google/apis/chat_v1/classes.rb', line 185 def sections @sections end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
192 193 194 195 196 197 |
# File 'generated/google/apis/chat_v1/classes.rb', line 192 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 |