Class: Google::Apis::CloudsearchV1::SwitchWidget
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::SwitchWidget
- 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
-
#control_type ⇒ String
Corresponds to the JSON property
controlType. -
#name ⇒ String
The name of the switch widget which is will be used in FormInput.
-
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
Corresponds to the JSON property
onChange. -
#selected ⇒ Boolean
(also: #selected?)
Corresponds to the JSON property
selected. -
#value ⇒ String
The value is what is passed back in apps script callback.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SwitchWidget
constructor
A new instance of SwitchWidget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SwitchWidget
Returns a new instance of SwitchWidget.
17134 17135 17136 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17134 def initialize(**args) update!(**args) end |
Instance Attribute Details
#control_type ⇒ String
Corresponds to the JSON property controlType
17111 17112 17113 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17111 def control_type @control_type end |
#name ⇒ String
The name of the switch widget which is will be used in FormInput.
Corresponds to the JSON property name
17116 17117 17118 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17116 def name @name end |
#on_change ⇒ Google::Apis::CloudsearchV1::FormAction
Corresponds to the JSON property onChange
17121 17122 17123 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17121 def on_change @on_change end |
#selected ⇒ Boolean Also known as: selected?
Corresponds to the JSON property selected
17126 17127 17128 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17126 def selected @selected end |
#value ⇒ String
The value is what is passed back in apps script callback.
Corresponds to the JSON property value
17132 17133 17134 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17132 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17139 17140 17141 17142 17143 17144 17145 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17139 def update!(**args) @control_type = args[:control_type] if args.key?(:control_type) @name = args[:name] if args.key?(:name) @on_change = args[:on_change] if args.key?(:on_change) @selected = args[:selected] if args.key?(:selected) @value = args[:value] if args.key?(:value) end |