Class: Google::Apis::CloudsearchV1::SelectionItem
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SelectionItem
- 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
Instance Attribute Summary collapse
-
#selected ⇒ Boolean
(also: #selected?)
If more than one items are selected for RADIO_BUTTON and DROPDOWN, the first selected item is treated as sElected and the after ones are all ignored.
-
#text ⇒ String
The text to be displayed.
-
#value ⇒ String
The value associated with this item which will be sent back to app scripts.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SelectionItem
constructor
A new instance of SelectionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SelectionItem
Returns a new instance of SelectionItem.
18494 18495 18496 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18494 def initialize(**args) update!(**args) end |
Instance Attribute Details
#selected ⇒ Boolean Also known as: selected?
If more than one items are selected for RADIO_BUTTON and DROPDOWN, the first
selected item is treated as sElected and the after ones are all ignored.
Corresponds to the JSON property selected
18480 18481 18482 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18480 def selected @selected end |
#text ⇒ String
The text to be displayed.
Corresponds to the JSON property text
18486 18487 18488 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18486 def text @text end |
#value ⇒ String
The value associated with this item which will be sent back to app scripts.
Client should use as a form input value.
Corresponds to the JSON property value
18492 18493 18494 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18492 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
18499 18500 18501 18502 18503 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18499 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 |