class Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem
The item in the switch control. A radio button, at most one of the items is selected.
Attributes
If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is treated as selected and the ones after are ignored. Corresponds to the JSON property `selected` @return [Boolean]
If more than one item is selected for `RADIO_BUTTON` and `DROPDOWN`, the first selected item is treated as selected and the ones after are ignored. Corresponds to the JSON property `selected` @return [Boolean]
The text to be displayed. Corresponds to the JSON property `text` @return [String]
The value associated with this item. The client should use this as a form input value. Corresponds to the JSON property `value` @return [String]
Public Class Methods
# File lib/google/apis/chat_v1/classes.rb, line 1825 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/chat_v1/classes.rb, line 1830 def update!(**args) @selected = args[:selected] if args.key?(:selected) @text = args[:text] if args.key?(:text) @value = args[:value] if args.key?(:value) end