Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageCardSection
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteStorageCardSection
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_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::CloudsearchV1::AppsDynamiteStorageWidget>
A section must contain at least 1 widget.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteStorageCardSection
constructor
A new instance of AppsDynamiteStorageCardSection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteStorageCardSection
Returns a new instance of AppsDynamiteStorageCardSection.
2805 2806 2807 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2805 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
2783 2784 2785 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2783 def collapsible @collapsible end |
#header ⇒ String
The header of the section. Formatted text is supported.
Corresponds to the JSON property header
2789 2790 2791 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2789 def header @header end |
#uncollapsible_widgets_count ⇒ Fixnum
The number of uncollapsible widgets. For example, when a section contains five
widgets and the numUncollapsibleWidget is set to 2, the first two widgets
are always shown and the last three are collapsed as default. The
numUncollapsibleWidget is taken into account only when collapsible is set to
true.
Corresponds to the JSON property uncollapsibleWidgetsCount
2798 2799 2800 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2798 def @uncollapsible_widgets_count end |
#widgets ⇒ Array<Google::Apis::CloudsearchV1::AppsDynamiteStorageWidget>
A section must contain at least 1 widget.
Corresponds to the JSON property widgets
2803 2804 2805 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2803 def @widgets end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2810 2811 2812 2813 2814 2815 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 2810 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 |