Class: Google::Apis::ContentV2_1::Callout
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::Callout
- 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
An important message that should be highlighted. Usually displayed as a banner.
Instance Attribute Summary collapse
-
#full_message ⇒ Google::Apis::ContentV2_1::TextWithTooltip
Block of text that may contain a tooltip with more information.
-
#style_hint ⇒ String
Can be used to render messages with different severity in different styles.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Callout
constructor
A new instance of Callout.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Callout
Returns a new instance of Callout.
2739 2740 2741 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2739 def initialize(**args) update!(**args) end |
Instance Attribute Details
#full_message ⇒ Google::Apis::ContentV2_1::TextWithTooltip
Block of text that may contain a tooltip with more information.
Corresponds to the JSON property fullMessage
2730 2731 2732 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2730 def @full_message end |
#style_hint ⇒ String
Can be used to render messages with different severity in different styles.
Snippets off all types contain important information that should be displayed
to merchants.
Corresponds to the JSON property styleHint
2737 2738 2739 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2737 def style_hint @style_hint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2744 2745 2746 2747 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2744 def update!(**args) @full_message = args[:full_message] if args.key?(:full_message) @style_hint = args[:style_hint] if args.key?(:style_hint) end |