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.
2787 2788 2789 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2787 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
2778 2779 2780 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2778 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
2785 2786 2787 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2785 def style_hint @style_hint end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2792 2793 2794 2795 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2792 def update!(**args) @full_message = args[:full_message] if args.key?(:full_message) @style_hint = args[:style_hint] if args.key?(:style_hint) end |