Class: Google::Apis::WebcontentpublisherV1::Cta
- Inherits:
-
Object
- Object
- Google::Apis::WebcontentpublisherV1::Cta
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/webcontentpublisher_v1/classes.rb,
lib/google/apis/webcontentpublisher_v1/representations.rb,
lib/google/apis/webcontentpublisher_v1/representations.rb
Overview
Represents a Call-To-Action (CTA) configuration for a publication.
Instance Attribute Summary collapse
-
#display_name ⇒ String
Required.
-
#name ⇒ String
Identifier.
-
#newsletter_config ⇒ Google::Apis::WebcontentpublisherV1::NewsletterConfig
Configuration for newsletter signup calls-to-action (CTAs).
-
#state ⇒ String
Output only.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Cta
constructor
A new instance of Cta.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Cta
Returns a new instance of Cta.
100 101 102 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 100 def initialize(**args) update!(**args) end |
Instance Attribute Details
#display_name ⇒ String
Required. The user-visible display name of the CTA.
Corresponds to the JSON property displayName
77 78 79 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 77 def display_name @display_name end |
#name ⇒ String
Identifier. The resource name of the Cta. Format: organizations/organization/
publications/publication/ctas/cta
Corresponds to the JSON property name
83 84 85 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 83 def name @name end |
#newsletter_config ⇒ Google::Apis::WebcontentpublisherV1::NewsletterConfig
Configuration for newsletter signup calls-to-action (CTAs).
Corresponds to the JSON property newsletterConfig
88 89 90 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 88 def @newsletter_config end |
#state ⇒ String
Output only. The current state of this CTA.
Corresponds to the JSON property state
93 94 95 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 93 def state @state end |
#type ⇒ String
Required. The type of this CTA.
Corresponds to the JSON property type
98 99 100 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 98 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
105 106 107 108 109 110 111 |
# File 'lib/google/apis/webcontentpublisher_v1/classes.rb', line 105 def update!(**args) @display_name = args[:display_name] if args.key?(:display_name) @name = args[:name] if args.key?(:name) @newsletter_config = args[:newsletter_config] if args.key?(:newsletter_config) @state = args[:state] if args.key?(:state) @type = args[:type] if args.key?(:type) end |