Class: Google::Apis::ChatV1::GoogleAppsCardV1Column

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

A column. Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleAppsCardV1Column

Returns a new instance of GoogleAppsCardV1Column.



1743
1744
1745
# File 'lib/google/apis/chat_v1/classes.rb', line 1743

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

Instance Attribute Details

#horizontal_alignmentString

Specifies whether widgets align to the left, right, or center of a column. Corresponds to the JSON property horizontalAlignment

Returns:

  • (String)


1725
1726
1727
# File 'lib/google/apis/chat_v1/classes.rb', line 1725

def horizontal_alignment
  @horizontal_alignment
end

#horizontal_size_styleString

Specifies how a column fills the width of the card. Corresponds to the JSON property horizontalSizeStyle

Returns:

  • (String)


1730
1731
1732
# File 'lib/google/apis/chat_v1/classes.rb', line 1730

def horizontal_size_style
  @horizontal_size_style
end

#vertical_alignmentString

Specifies whether widgets align to the top, bottom, or center of a column. Corresponds to the JSON property verticalAlignment

Returns:

  • (String)


1735
1736
1737
# File 'lib/google/apis/chat_v1/classes.rb', line 1735

def vertical_alignment
  @vertical_alignment
end

#widgetsArray<Google::Apis::ChatV1::GoogleAppsCardV1Widgets>

An array of widgets included in a column. Widgets appear in the order that they are specified. Corresponds to the JSON property widgets



1741
1742
1743
# File 'lib/google/apis/chat_v1/classes.rb', line 1741

def widgets
  @widgets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1748
1749
1750
1751
1752
1753
# File 'lib/google/apis/chat_v1/classes.rb', line 1748

def update!(**args)
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
  @horizontal_size_style = args[:horizontal_size_style] if args.key?(:horizontal_size_style)
  @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
  @widgets = args[:widgets] if args.key?(:widgets)
end