Class: Google::Apis::ContentV2_1::InputFieldChoiceInputChoiceInputOption

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputFieldChoiceInputChoiceInputOption

Returns a new instance of InputFieldChoiceInputChoiceInputOption.



5400
5401
5402
# File 'lib/google/apis/content_v2_1/classes.rb', line 5400

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

Instance Attribute Details

#additional_inputGoogle::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



5388
5389
5390
# File 'lib/google/apis/content_v2_1/classes.rb', line 5388

def additional_input
  @additional_input
end

#idString

Not for display but need to be sent back for the selected choice option. Corresponds to the JSON property id

Returns:

  • (String)


5393
5394
5395
# File 'lib/google/apis/content_v2_1/classes.rb', line 5393

def id
  @id
end

#labelGoogle::Apis::ContentV2_1::TextWithTooltip

Block of text that may contain a tooltip with more information. Corresponds to the JSON property label



5398
5399
5400
# File 'lib/google/apis/content_v2_1/classes.rb', line 5398

def label
  @label
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5405
5406
5407
5408
5409
# File 'lib/google/apis/content_v2_1/classes.rb', line 5405

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