Class: Google::Apis::ChatV1::GoogleAppsCardV1Section
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Section
- 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 is currently no need for layout properties, for example, float.
Instance Attribute Summary collapse
-
#collapsible ⇒ Boolean
(also: #collapsible?)
Indicates whether this section is collapsible.
-
#header ⇒ String
The header of the section.
-
#uncollapsible_widgets_count ⇒ Fixnum
The number of uncollapsible widgets.
-
#widgets ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1Widget>
A section must contain at least 1 widget.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Section
constructor
A new instance of GoogleAppsCardV1Section.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Section
Returns a new instance of GoogleAppsCardV1Section.
1840 1841 1842 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1840 def initialize(**args) update!(**args) end |
Instance Attribute Details
#collapsible ⇒ Boolean Also known as: collapsible?
Indicates whether this section is collapsible. If a section is collapsible,
the description must be given.
Corresponds to the JSON property collapsible
1818 1819 1820 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1818 def collapsible @collapsible end |
#header ⇒ String
The header of the section. Formatted text is supported.
Corresponds to the JSON property header
1824 1825 1826 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1824 def header @header end |
#uncollapsible_widgets_count ⇒ Fixnum
The number of uncollapsible widgets. For example, when a section contains five
widgets and the uncollapsibleWidgetsCount is set to 2, the first two
widgets are always shown and the last three are collapsed as default. The
uncollapsibleWidgetsCount is taken into account only when collapsible is
true.
Corresponds to the JSON property uncollapsibleWidgetsCount
1833 1834 1835 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1833 def @uncollapsible_widgets_count end |
#widgets ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1Widget>
A section must contain at least 1 widget.
Corresponds to the JSON property widgets
1838 1839 1840 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1838 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1845 1846 1847 1848 1849 1850 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1845 def update!(**args) @collapsible = args[:collapsible] if args.key?(:collapsible) @header = args[:header] if args.key?(:header) @uncollapsible_widgets_count = args[:uncollapsible_widgets_count] if args.key?(:uncollapsible_widgets_count) @widgets = args[:widgets] if args.key?(:widgets) end |