Class: Google::Apis::ContentV2_1::TextWithTooltip

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

Block of text that may contain a tooltip with more information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TextWithTooltip

Returns a new instance of TextWithTooltip.



14049
14050
14051
# File 'lib/google/apis/content_v2_1/classes.rb', line 14049

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

Instance Attribute Details

#simple_tooltip_valueString

Value of the tooltip as a simple text. Corresponds to the JSON property simpleTooltipValue

Returns:

  • (String)


14037
14038
14039
# File 'lib/google/apis/content_v2_1/classes.rb', line 14037

def simple_tooltip_value
  @simple_tooltip_value
end

#simple_valueString

Value of the message as a simple text. Corresponds to the JSON property simpleValue

Returns:

  • (String)


14042
14043
14044
# File 'lib/google/apis/content_v2_1/classes.rb', line 14042

def simple_value
  @simple_value
end

#tooltip_icon_styleString

The suggested type of an icon for tooltip, if a tooltip is present. Corresponds to the JSON property tooltipIconStyle

Returns:

  • (String)


14047
14048
14049
# File 'lib/google/apis/content_v2_1/classes.rb', line 14047

def tooltip_icon_style
  @tooltip_icon_style
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14054
14055
14056
14057
14058
# File 'lib/google/apis/content_v2_1/classes.rb', line 14054

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