class Google::Apis::ChatV1::Section
A section contains a collection of widgets that are rendered (vertically) in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties (e.g. float).
Attributes
header[RW]
The header of the section, text formatted supported. Corresponds to the JSON property `header` @return [String]
widgets[RW]
A section must contain at least 1 widget. Corresponds to the JSON property `widgets` @return [Array<Google::Apis::ChatV1::WidgetMarkup>]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2540 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 2545 def update!(**args) @header = args[:header] if args.key?(:header) @widgets = args[:widgets] if args.key?(:widgets) end