Class: Google::Apis::ContentV2_1::InputFieldChoiceInputChoiceInputOption
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::InputFieldChoiceInputChoiceInputOption
- 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
A choice that merchant can select.
Instance Attribute Summary collapse
-
#additional_input ⇒ Google::Apis::ContentV2_1::InputField
Input field that needs to be available to the merchant.
-
#id ⇒ String
Not for display but need to be sent back for the selected choice option.
-
#label ⇒ Google::Apis::ContentV2_1::TextWithTooltip
Block of text that may contain a tooltip with more information.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputFieldChoiceInputChoiceInputOption
constructor
A new instance of InputFieldChoiceInputChoiceInputOption.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InputFieldChoiceInputChoiceInputOption
Returns a new instance of InputFieldChoiceInputChoiceInputOption.
5352 5353 5354 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5352 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_input ⇒ Google::Apis::ContentV2_1::InputField
Input field that needs to be available to the merchant. If the field is marked
as required, then a value needs to be provided for a successful processing of
the request.
Corresponds to the JSON property additionalInput
5340 5341 5342 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5340 def additional_input @additional_input end |
#id ⇒ String
Not for display but need to be sent back for the selected choice option.
Corresponds to the JSON property id
5345 5346 5347 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5345 def id @id end |
#label ⇒ Google::Apis::ContentV2_1::TextWithTooltip
Block of text that may contain a tooltip with more information.
Corresponds to the JSON property label
5350 5351 5352 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5350 def label @label end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5357 5358 5359 5360 5361 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5357 def update!(**args) @additional_input = args[:additional_input] if args.key?(:additional_input) @id = args[:id] if args.key?(:id) @label = args[:label] if args.key?(:label) end |