Class: Google::Apis::ChatV1::CardAction
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChatV1::CardAction
 
- 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 card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Instance Attribute Summary collapse
- 
  
    
      #action_label  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The label used to be displayed in the action menu item. 
- 
  
    
      #on_click  ⇒ Google::Apis::ChatV1::OnClick 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An onclick action (e.g. open a link). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ CardAction 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of CardAction. 
- 
  
    
      #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) ⇒ CardAction
Returns a new instance of CardAction
| 217 218 219 | # File 'generated/google/apis/chat_v1/classes.rb', line 217 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#action_label ⇒ String
The label used to be displayed in the action menu item.
Corresponds to the JSON property actionLabel
| 210 211 212 | # File 'generated/google/apis/chat_v1/classes.rb', line 210 def action_label @action_label end | 
#on_click ⇒ Google::Apis::ChatV1::OnClick
An onclick action (e.g. open a link).
Corresponds to the JSON property onClick
| 215 216 217 | # File 'generated/google/apis/chat_v1/classes.rb', line 215 def on_click @on_click end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 222 223 224 225 | # File 'generated/google/apis/chat_v1/classes.rb', line 222 def update!(**args) @action_label = args[:action_label] if args.key?(:action_label) @on_click = args[:on_click] if args.key?(:on_click) end |