Class: Google::Apis::ChatV1::Section
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::Section
- 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 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's currently no need for layout properties (for example, float).
Instance Attribute Summary collapse
-
#header ⇒ String
The header of the section.
-
#widgets ⇒ Array<Google::Apis::ChatV1::WidgetMarkup>
A section must contain at least one widget.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Section
constructor
A new instance of Section.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Section
Returns a new instance of Section.
4865 4866 4867 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4865 def initialize(**args) update!(**args) end |
Instance Attribute Details
#header ⇒ String
The header of the section. Formatted text is supported. For more information
about formatting text, see Formatting text in Google Chat apps and
Formatting text in Google Workspace Add-ons.
Corresponds to the JSON property header
4858 4859 4860 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4858 def header @header end |
#widgets ⇒ Array<Google::Apis::ChatV1::WidgetMarkup>
A section must contain at least one widget.
Corresponds to the JSON property widgets
4863 4864 4865 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4863 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4870 4871 4872 4873 |
# File 'lib/google/apis/chat_v1/classes.rb', line 4870 def update!(**args) @header = args[:header] if args.key?(:header) @widgets = args[:widgets] if args.key?(:widgets) end |