class Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem

The item in the switch control. A radio button, at most one of the items is selected.

Attributes

selected[RW]

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]

selected?[RW]

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]

text[RW]

The text to be displayed. Corresponds to the JSON property `text` @return [String]

value[RW]

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

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1825
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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