Class: Google::Apis::ContentV2_1::InputValue
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::InputValue
- 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
Input provided by the merchant for input field.
Instance Attribute Summary collapse
-
#checkbox_input_value ⇒ Google::Apis::ContentV2_1::InputValueCheckboxInputValue
Value for checkbox input field.
-
#choice_input_value ⇒ Google::Apis::ContentV2_1::InputValueChoiceInputValue
Value for choice input field.
-
#input_field_id ⇒ String
Required.
-
#text_input_value ⇒ Google::Apis::ContentV2_1::InputValueTextInputValue
Value for text input field.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InputValue
constructor
A new instance of InputValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ InputValue
Returns a new instance of InputValue.
5476 5477 5478 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5476 def initialize(**args) update!(**args) end |
Instance Attribute Details
#checkbox_input_value ⇒ Google::Apis::ContentV2_1::InputValueCheckboxInputValue
Value for checkbox input field.
Corresponds to the JSON property checkboxInputValue
5459 5460 5461 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5459 def checkbox_input_value @checkbox_input_value end |
#choice_input_value ⇒ Google::Apis::ContentV2_1::InputValueChoiceInputValue
Value for choice input field.
Corresponds to the JSON property choiceInputValue
5464 5465 5466 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5464 def choice_input_value @choice_input_value end |
#input_field_id ⇒ String
Required. Id of the corresponding input field.
Corresponds to the JSON property inputFieldId
5469 5470 5471 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5469 def input_field_id @input_field_id end |
#text_input_value ⇒ Google::Apis::ContentV2_1::InputValueTextInputValue
Value for text input field.
Corresponds to the JSON property textInputValue
5474 5475 5476 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5474 def text_input_value @text_input_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5481 5482 5483 5484 5485 5486 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5481 def update!(**args) @checkbox_input_value = args[:checkbox_input_value] if args.key?(:checkbox_input_value) @choice_input_value = args[:choice_input_value] if args.key?(:choice_input_value) @input_field_id = args[:input_field_id] if args.key?(:input_field_id) @text_input_value = args[:text_input_value] if args.key?(:text_input_value) end |