Class: Google::Apis::ChatV1::TextButton
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChatV1::TextButton
 
- 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 button with text and onclick action.
Instance Attribute Summary collapse
- 
  
    
      #on_click  ⇒ Google::Apis::ChatV1::OnClick 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An onclick action (e.g. open a link). 
- 
  
    
      #text  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The text of the button. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ TextButton 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of TextButton. 
- 
  
    
      #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) ⇒ TextButton
Returns a new instance of TextButton
| 750 751 752 | # File 'generated/google/apis/chat_v1/classes.rb', line 750 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#on_click ⇒ Google::Apis::ChatV1::OnClick
An onclick action (e.g. open a link).
Corresponds to the JSON property onClick
| 743 744 745 | # File 'generated/google/apis/chat_v1/classes.rb', line 743 def on_click @on_click end | 
#text ⇒ String
The text of the button.
Corresponds to the JSON property text
| 748 749 750 | # File 'generated/google/apis/chat_v1/classes.rb', line 748 def text @text end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 755 756 757 758 | # File 'generated/google/apis/chat_v1/classes.rb', line 755 def update!(**args) @on_click = args[:on_click] if args.key?(:on_click) @text = args[:text] if args.key?(:text) end |