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.



5499
5500
5501
# File 'lib/google/apis/content_v2_1/classes.rb', line 5499

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)


5496
5497
5498
# File 'lib/google/apis/content_v2_1/classes.rb', line 5496

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5504
5505
5506
# File 'lib/google/apis/content_v2_1/classes.rb', line 5504

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