Class: Google::Apis::ContentV2_1::InputFieldChoiceInput
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::InputFieldChoiceInput
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Choice input allows merchants to select one of the offered choices. Some choices may be linked to additional input fields that should be displayed under or next to the choice option. The value for the additional input field needs to be provided only when the specific choice is selected by the merchant. For example, additional input field can be hidden or disabled until the merchant selects the specific choice.
Instance Attribute Summary collapse
-
#options ⇒ Array<Google::Apis::ContentV2_1::InputFieldChoiceInputChoiceInputOption>
A list of choices.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputFieldChoiceInput
constructor
A new instance of InputFieldChoiceInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InputFieldChoiceInput
Returns a new instance of InputFieldChoiceInput.
5369 5370 5371 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5369 def initialize(**args) update!(**args) end |
Instance Attribute Details
#options ⇒ Array<Google::Apis::ContentV2_1::InputFieldChoiceInputChoiceInputOption>
A list of choices. Only one option can be selected.
Corresponds to the JSON property options
5367 5368 5369 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5367 def @options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5374 5375 5376 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5374 def update!(**args) @options = args[:options] if args.key?(:options) end |