Class: Google::Apis::ContentV2_1::InputValueCheckboxInputValue

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 checkbox input field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputValueCheckboxInputValue

Returns a new instance of InputValueCheckboxInputValue.



5451
5452
5453
# File 'lib/google/apis/content_v2_1/classes.rb', line 5451

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

Instance Attribute Details

#valueBoolean Also known as: value?

Required. True if the merchant checked the box field. False otherwise. Corresponds to the JSON property value

Returns:

  • (Boolean)


5448
5449
5450
# File 'lib/google/apis/content_v2_1/classes.rb', line 5448

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5456
5457
5458
# File 'lib/google/apis/content_v2_1/classes.rb', line 5456

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