Class: Google::Apis::ContentV2_1::InputFieldTextInput

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

Text input allows merchants to provide a text value.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InputFieldTextInput

Returns a new instance of InputFieldTextInput.



5391
5392
5393
# File 'lib/google/apis/content_v2_1/classes.rb', line 5391

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

Instance Attribute Details

#additional_infoGoogle::Apis::ContentV2_1::TextWithTooltip

Block of text that may contain a tooltip with more information. Corresponds to the JSON property additionalInfo



5371
5372
5373
# File 'lib/google/apis/content_v2_1/classes.rb', line 5371

def additional_info
  @additional_info
end

#aria_labelString

Text to be used as the aria-label for the input. Corresponds to the JSON property ariaLabel

Returns:

  • (String)


5377
5378
5379
# File 'lib/google/apis/content_v2_1/classes.rb', line 5377

def aria_label
  @aria_label
end

#format_infoString

Information about the required format. If present, it should be shown close to the input field to help merchants to provide a correct value. For example: " VAT numbers should be in a format similar to SK9999999999" Corresponds to the JSON property formatInfo

Returns:

  • (String)


5384
5385
5386
# File 'lib/google/apis/content_v2_1/classes.rb', line 5384

def format_info
  @format_info
end

#typeString

Type of the text input Corresponds to the JSON property type

Returns:

  • (String)


5389
5390
5391
# File 'lib/google/apis/content_v2_1/classes.rb', line 5389

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5396
5397
5398
5399
5400
5401
# File 'lib/google/apis/content_v2_1/classes.rb', line 5396

def update!(**args)
  @additional_info = args[:additional_info] if args.key?(:additional_info)
  @aria_label = args[:aria_label] if args.key?(:aria_label)
  @format_info = args[:format_info] if args.key?(:format_info)
  @type = args[:type] if args.key?(:type)
end