Class: Google::Apis::ContentV2_1::InputValue

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

Input provided by the merchant for input field.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_valueGoogle::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_valueGoogle::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_idString

Required. Id of the corresponding input field. Corresponds to the JSON property inputFieldId

Returns:

  • (String)


5421
5422
5423
# File 'lib/google/apis/content_v2_1/classes.rb', line 5421

def input_field_id
  @input_field_id
end

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