Class: Google::Apis::FirebasedynamiclinksV1::SocialMetaTagInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebasedynamiclinks_v1/classes.rb,
lib/google/apis/firebasedynamiclinks_v1/representations.rb,
lib/google/apis/firebasedynamiclinks_v1/representations.rb

Overview

Parameters for social meta tag params. Used to set meta tag data for link previews on social sites.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SocialMetaTagInfo

Returns a new instance of SocialMetaTagInfo.



1026
1027
1028
# File 'lib/google/apis/firebasedynamiclinks_v1/classes.rb', line 1026

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

Instance Attribute Details

#social_descriptionString

A short description of the link. Optional. Corresponds to the JSON property socialDescription

Returns:

  • (String)


1014
1015
1016
# File 'lib/google/apis/firebasedynamiclinks_v1/classes.rb', line 1014

def social_description
  @social_description
end

An image url string. Optional. Corresponds to the JSON property socialImageLink

Returns:

  • (String)


1019
1020
1021
# File 'lib/google/apis/firebasedynamiclinks_v1/classes.rb', line 1019

def social_image_link
  @social_image_link
end

#social_titleString

Title to be displayed. Optional. Corresponds to the JSON property socialTitle

Returns:

  • (String)


1024
1025
1026
# File 'lib/google/apis/firebasedynamiclinks_v1/classes.rb', line 1024

def social_title
  @social_title
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1031
1032
1033
1034
1035
# File 'lib/google/apis/firebasedynamiclinks_v1/classes.rb', line 1031

def update!(**args)
  @social_description = args[:social_description] if args.key?(:social_description)
  @social_image_link = args[:social_image_link] if args.key?(:social_image_link)
  @social_title = args[:social_title] if args.key?(:social_title)
end