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.



5439
5440
5441
# File 'lib/google/apis/content_v2_1/classes.rb', line 5439

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



5419
5420
5421
# File 'lib/google/apis/content_v2_1/classes.rb', line 5419

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)


5425
5426
5427
# File 'lib/google/apis/content_v2_1/classes.rb', line 5425

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)


5432
5433
5434
# File 'lib/google/apis/content_v2_1/classes.rb', line 5432

def format_info
  @format_info
end

#typeString

Type of the text input Corresponds to the JSON property type

Returns:

  • (String)


5437
5438
5439
# File 'lib/google/apis/content_v2_1/classes.rb', line 5437

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5444
5445
5446
5447
5448
5449
# File 'lib/google/apis/content_v2_1/classes.rb', line 5444

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