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.
5428 5429 5430 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5428 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
5411 5412 5413 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5411 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
5416 5417 5418 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5416 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
5421 5422 5423 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5421 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
5426 5427 5428 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5426 def text_input_value @text_input_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5433 5434 5435 5436 5437 5438 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 5433 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 |