Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCard
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCard
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_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::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction>
The actions of this card.
-
#header ⇒ Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader
The header of the card.
-
#name ⇒ String
Name of the card.
-
#sections ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardSection>
Sections are separated by a line divider.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCard
constructor
A new instance of GoogleChatV1ContextualAddOnMarkupCard.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCard
Returns a new instance of GoogleChatV1ContextualAddOnMarkupCard.
9620 9621 9622 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9620 def initialize(**args) update!(**args) end |
Instance Attribute Details
#card_actions ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction>
The actions of this card.
Corresponds to the JSON property cardActions
9603 9604 9605 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9603 def card_actions @card_actions end |
#header ⇒ Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader
The header of the card. A header usually contains a title and an image.
Corresponds to the JSON property header
9608 9609 9610 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9608 def header @header end |
#name ⇒ String
Name of the card.
Corresponds to the JSON property name
9613 9614 9615 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9613 def name @name end |
#sections ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardSection>
Sections are separated by a line divider.
Corresponds to the JSON property sections
9618 9619 9620 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9618 def sections @sections end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
9625 9626 9627 9628 9629 9630 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9625 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 |