Class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A widget that creates a UI item with options for users to select. For example, a dropdown menu.
Instance Attribute Summary collapse
-
#items ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem>
An array of the selected items.
-
#label ⇒ String
The label displayed ahead of the switch control.
-
#name ⇒ String
The name of the text input which is used in
formInput. -
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted.
-
#type ⇒ String
The type of the selection.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1SelectionInput
constructor
A new instance of GoogleAppsCardV1SelectionInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1SelectionInput
Returns a new instance of GoogleAppsCardV1SelectionInput.
1905 1906 1907 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1905 def initialize(**args) update!(**args) end |
Instance Attribute Details
#items ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem>
An array of the selected items.
Corresponds to the JSON property items
1882 1883 1884 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1882 def items @items end |
#label ⇒ String
The label displayed ahead of the switch control.
Corresponds to the JSON property label
1887 1888 1889 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1887 def label @label end |
#name ⇒ String
The name of the text input which is used in formInput.
Corresponds to the JSON property name
1892 1893 1894 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1892 def name @name end |
#on_change_action ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Action
An action that describes the behavior when the form is submitted. For example,
an Apps Script can be invoked to handle the form.
Corresponds to the JSON property onChangeAction
1898 1899 1900 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1898 def on_change_action @on_change_action end |
#type ⇒ String
The type of the selection.
Corresponds to the JSON property type
1903 1904 1905 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1903 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1910 1911 1912 1913 1914 1915 1916 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1910 def update!(**args) @items = args[:items] if args.key?(:items) @label = args[:label] if args.key?(:label) @name = args[:name] if args.key?(:name) @on_change_action = args[:on_change_action] if args.key?(:on_change_action) @type = args[:type] if args.key?(:type) end |