Class: Google::Apis::ChatV1::GoogleAppsCardV1CollapseControl

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb

Overview

Represent an expand and collapse control. Google Chat apps:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1CollapseControl

Returns a new instance of GoogleAppsCardV1CollapseControl.



1923
1924
1925
# File 'lib/google/apis/chat_v1/classes.rb', line 1923

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

Instance Attribute Details

#collapse_buttonGoogle::Apis::ChatV1::GoogleAppsCardV1Button

A text, icon, or text and icon button that users can click. For an example in Google Chat apps, see Add a button. To make an image a clickable button, specify an Image (not an ImageComponent) and set an onClick action. Google Workspace Add-ons and Chat apps: Corresponds to the JSON property collapseButton



1906
1907
1908
# File 'lib/google/apis/chat_v1/classes.rb', line 1906

def collapse_button
  @collapse_button
end

#expand_buttonGoogle::Apis::ChatV1::GoogleAppsCardV1Button

A text, icon, or text and icon button that users can click. For an example in Google Chat apps, see Add a button. To make an image a clickable button, specify an Image (not an ImageComponent) and set an onClick action. Google Workspace Add-ons and Chat apps: Corresponds to the JSON property expandButton



1916
1917
1918
# File 'lib/google/apis/chat_v1/classes.rb', line 1916

def expand_button
  @expand_button
end

#horizontal_alignmentString

The horizontal alignment of the expand and collapse button. Corresponds to the JSON property horizontalAlignment

Returns:

  • (String)


1921
1922
1923
# File 'lib/google/apis/chat_v1/classes.rb', line 1921

def horizontal_alignment
  @horizontal_alignment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1928
1929
1930
1931
1932
# File 'lib/google/apis/chat_v1/classes.rb', line 1928

def update!(**args)
  @collapse_button = args[:collapse_button] if args.key?(:collapse_button)
  @expand_button = args[:expand_button] if args.key?(:expand_button)
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
end