Class: Google::Apis::ContentV2_1::InputValueChoiceInputValue

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

Value for choice input field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputValueChoiceInputValue

Returns a new instance of InputValueChoiceInputValue.



5470
5471
5472
# File 'lib/google/apis/content_v2_1/classes.rb', line 5470

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

Instance Attribute Details

#choice_input_option_idString

Required. Id of the option that was selected by the merchant. Corresponds to the JSON property choiceInputOptionId

Returns:

  • (String)


5468
5469
5470
# File 'lib/google/apis/content_v2_1/classes.rb', line 5468

def choice_input_option_id
  @choice_input_option_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5475
5476
5477
# File 'lib/google/apis/content_v2_1/classes.rb', line 5475

def update!(**args)
  @choice_input_option_id = args[:choice_input_option_id] if args.key?(:choice_input_option_id)
end