Class: Google::Apis::CloudsearchV1::AppsDynamiteSharedSelectionInputSelectionItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AppsDynamiteSharedSelectionInputSelectionItem
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
The item in the switch control. A radio button, at most one of the items is selected.
Instance Attribute Summary collapse
-
#selected ⇒ Boolean
(also: #selected?)
If more than one item is selected for
RADIO_BUTTONandDROPDOWN, the first selected item is treated as selected and the ones after are ignored. -
#text ⇒ String
The text to be displayed.
-
#value ⇒ String
The value associated with this item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AppsDynamiteSharedSelectionInputSelectionItem
constructor
A new instance of AppsDynamiteSharedSelectionInputSelectionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AppsDynamiteSharedSelectionInputSelectionItem
Returns a new instance of AppsDynamiteSharedSelectionInputSelectionItem.
3245 3246 3247 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3245 def initialize(**args) update!(**args) end |
Instance Attribute Details
#selected ⇒ Boolean Also known as: selected?
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
3231 3232 3233 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3231 def selected @selected end |
#text ⇒ String
The text to be displayed.
Corresponds to the JSON property text
3237 3238 3239 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3237 def text @text end |
#value ⇒ String
The value associated with this item. The client should use this as a form
input value.
Corresponds to the JSON property value
3243 3244 3245 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3243 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3250 3251 3252 3253 3254 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3250 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 |