Class: Google::Apis::CloudsearchV1::AppsDynamiteStorageSelectionInputSelectionItem

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AppsDynamiteStorageSelectionInputSelectionItem

Returns a new instance of AppsDynamiteStorageSelectionInputSelectionItem.



3909
3910
3911
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3909

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#selectedBoolean 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

Returns:

  • (Boolean)


3895
3896
3897
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3895

def selected
  @selected
end

#textString

The text to be displayed. Corresponds to the JSON property text

Returns:

  • (String)


3901
3902
3903
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3901

def text
  @text
end

#valueString

The value associated with this item. The client should use this as a form input value. Corresponds to the JSON property value

Returns:

  • (String)


3907
3908
3909
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3907

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3914
3915
3916
3917
3918
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3914

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