Class: Google::Apis::ContentV2_1::Callout

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

An important message that should be highlighted. Usually displayed as a banner.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_messageGoogle::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
  @full_message
end

#style_hintString

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

Returns:

  • (String)


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