Class: Google::Apis::CloudsearchV1::SwitchWidget

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SwitchWidget

Returns a new instance of SwitchWidget.



19164
19165
19166
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19164

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

Instance Attribute Details

#control_typeString

Corresponds to the JSON property controlType

Returns:

  • (String)


19141
19142
19143
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19141

def control_type
  @control_type
end

#nameString

The name of the switch widget which is will be used in FormInput. Corresponds to the JSON property name

Returns:

  • (String)


19146
19147
19148
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19146

def name
  @name
end

#on_changeGoogle::Apis::CloudsearchV1::FormAction

Corresponds to the JSON property onChange



19151
19152
19153
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19151

def on_change
  @on_change
end

#selectedBoolean Also known as: selected?

Corresponds to the JSON property selected

Returns:

  • (Boolean)


19156
19157
19158
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19156

def selected
  @selected
end

#valueString

The value is what is passed back in apps script callback. Corresponds to the JSON property value

Returns:

  • (String)


19162
19163
19164
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19162

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19169
19170
19171
19172
19173
19174
19175
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 19169

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