Class: Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCard

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleChatV1ContextualAddOnMarkupCard

Returns a new instance of GoogleChatV1ContextualAddOnMarkupCard.



10045
10046
10047
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10045

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#card_actionsArray<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardAction>

The actions of this card. Corresponds to the JSON property cardActions



10028
10029
10030
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10028

def card_actions
  @card_actions
end

#headerGoogle::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardCardHeader

The header of the card. A header usually contains a title and an image. Corresponds to the JSON property header



10033
10034
10035
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10033

def header
  @header
end

#nameString

Name of the card. Corresponds to the JSON property name

Returns:

  • (String)


10038
10039
10040
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10038

def name
  @name
end

#sectionsArray<Google::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkupCardSection>

Sections are separated by a line divider. Corresponds to the JSON property sections



10043
10044
10045
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10043

def sections
  @sections
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10050
10051
10052
10053
10054
10055
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10050

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