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.
5321 5322 5323 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5321 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
5319 5320 5321 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5319 def @options end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5326 5327 5328 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5326 def update!(**args) @options = args[:options] if args.key?(:options) end |