Class: Google::Apis::ChatV1::Section
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChatV1::Section
 
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
 generated/google/apis/chat_v1/representations.rb,
 generated/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 (e.g. float).
Instance Attribute Summary collapse
- 
  
    
      #header  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The header of the section, text formatted supported. 
- 
  
    
      #widgets  ⇒ Array<Google::Apis::ChatV1::WidgetMarkup> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A section must contain at least 1 widget. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ Section 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Section. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ Section
Returns a new instance of Section
| 693 694 695 | # File 'generated/google/apis/chat_v1/classes.rb', line 693 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#header ⇒ String
The header of the section, text formatted supported.
Corresponds to the JSON property header
| 686 687 688 | # File 'generated/google/apis/chat_v1/classes.rb', line 686 def header @header end | 
#widgets ⇒ Array<Google::Apis::ChatV1::WidgetMarkup>
A section must contain at least 1 widget.
Corresponds to the JSON property widgets
| 691 692 693 | # File 'generated/google/apis/chat_v1/classes.rb', line 691 def @widgets end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 698 699 700 701 | # File 'generated/google/apis/chat_v1/classes.rb', line 698 def update!(**args) @header = args[:header] if args.key?(:header) @widgets = args[:widgets] if args.key?(:widgets) end |